Explorar el Código

Update update.sh (Sync Ver.200626)

hi80482 hace 3 años
padre
commit
ee60483608
Se han modificado 1 ficheros con 4 adiciones y 5 borrados
  1. 4 5
      update.sh

+ 4 - 5
update.sh

@@ -1,14 +1,13 @@
 #!/bin/bash
 
-cd /home/cpi/launcher 
+cd /home/cpi/launcher || exit 
 feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/updating.png
 git pull
-git reset --hard $1
+git reset --hard "$1"
 git submodule init
 git submodule update
 
-cd ~/apps/Menu && git pull && cd -
+cd ~/apps/Menu && git pull && cd - || exit
 
-feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/loading.png 
+feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/loading.png
 ./load.sh
-