Changeset 60 for scripts/usr/local/lib/7dtd/common.sh
- Timestamp:
- Jun 15, 2014, 3:14:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/common.sh
r53 r60 118 118 getRemoteEngineVersion() { 119 119 cd $SDTD_BASE/steamcmd 120 local REMOTE=$(./steamcmd.sh "+app_info_print 251570" +quit | grep -EA 1000 "^\s+\"branches\"$" | grep -EA 5 "^\s+\"public\"$" | grep -m 1 -EB 10 "^\s+}$" | grep -E "^\s+\"buildid\"\s+" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\ -f3) 120 local REMOTE=$(wget -qO- http://steamdb.info/api/GetRawDepots/?appid=251570 | sed 's/\\n/\n/g' | grep -EA 1000 "^\s+\[branches\]" | grep -EA 5 "^\s+\[public\]" | grep -m 1 -EB 10 "^\s+\)$" | grep -E "^\s+\[buildid\]\s+" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\ -f4) 121 121 122 if [ $(isANumber "$REMOTE") -eq 0 ]; then 122 123 REMOTE=1
Note:
See TracChangeset
for help on using the changeset viewer.