Explorar o código

created tmp dir if missing

Daniel Gibbs %!s(int64=10) %!d(string=hai) anos
pai
achega
9f08f682cc
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      lgsm/functions/update_ts3.sh

+ 5 - 0
lgsm/functions/update_ts3.sh

@@ -64,6 +64,11 @@ fi
 fn_update_ts3_availablebuild(){
 # Gets availablebuild info.
 
+# Creates tmp dir if missing
+if [ ! -d "${lgsmdir}/tmp" ]; then
+	mkdir -p "${lgsmdir}/tmp"
+fi
+
 # Grabs all version numbers but not in correct order.
 wget "http://dl.4players.de/ts/releases/?C=M;O=D" -q -O -| grep -i dir | egrep -o '<a href=\".*\/\">.*\/<\/a>' | egrep -o '[0-9\.?]+'|uniq > "${lgsmdir}/tmp/.ts3_version_numbers_unsorted.tmp"