You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local serverresp="$(curl -s -d "itemcount=1&publishedfileids[0]=${modid}""http://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1")"
113
113
local remupd=
114
-
if [[ "$serverresp"=~\"hcontent_file\":[[:space:]]*([^,]*) ]];then
114
+
if [[ "${serverresp}"=~\"hcontent_file\":[[:space:]]*([^,]*) ]];then
115
115
remupd="${BASH_REMATCH[1]}"
116
116
fi
117
-
echo"$remupd"| tr -d '"'
117
+
echo"${remupd}"| tr -d '"'
118
118
}
119
119
120
120
fn_workshop_get_name_from_steam() {
121
121
local modid="$1"
122
122
local serverresp="$(curl -s -d "itemcount=1&publishedfileids[0]=${modid}""http://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1")"
123
123
local title=
124
-
if [[ "$serverresp"=~\"title\":[[:space:]]*([^,]*) ]];then
124
+
if [[ "${serverresp}"=~\"title\":[[:space:]]*([^,]*) ]];then
125
125
title="${BASH_REMATCH[1]}"
126
126
fi
127
-
echo"$title"| tr -d '"'
127
+
echo"${title}"| tr -d '"'
128
128
}
129
129
130
130
fn_workshop_check_mod_update() {
131
131
local modid="$1"
132
132
if [ !-f"${workshopmodsdldir}/steamapps/workshop/appworkshop_${gameappid}.acf" ];thenreturn 0;fi
133
133
local instmft="$(sed -n '/^\t"WorkshopItemsInstalled"$/,/^\t[}]$/{/^\t\t"'"${modid}"'"$/,/^\t\t[}]$/{s|^\t\t\t"manifest"\t\t"\(.*\)"$|\1|p}}'<"${workshopmodsdldir}/steamapps/workshop/appworkshop_${gameappid}.acf")"
134
-
if [ -z"$instmft" ];thenreturn 0;fi
135
-
local remmft="$(fn_workshop_get_latest_mod_version "$modid")"
134
+
if [ -z"${instmft}" ];thenreturn 0;fi
135
+
local remmft="$(fn_workshop_get_latest_mod_version "${modid}")"
136
136
if [[ -n"${remmft}"&&"${instmft}"!="${remmft}" ]];then
0 commit comments