diff --git a/LAMA.sh b/LAMA.sh index 07563d32b2fd889d990632c2f2d20e98813b4812..9110142e93e58464be7da1816c9bdcfc142fc894 100644 --- a/LAMA.sh +++ b/LAMA.sh @@ -394,7 +394,7 @@ ${gitrepotext}" \ else zenity --info --width 240 --height 240 --text "This option is not yet supported for your OS" fi elif [[ $updatewindow = "Update LAMA" ]]; then - curl --header "" '' > LAMA-temp.sh; rm $0; mv LAMA-temp.sh $0 + curl --header "" 'https://gitlab.rrz.uni-hamburg.de/api/v4/projects/3164/repository/files/lama%2Esh/raw?ref=main' > LAMA-temp.sh; rm $0; mv LAMA-temp.sh $0 lamaupdated=$(zenity --info --width 240 --height 240 --text "LAMA was updated" --ok-label "Reload LAMA") if [ $? -eq 0 ]; then bash $0 & exit 0; fi fi @@ -416,6 +416,6 @@ ${gitrepotext}" [ ! -d "$(dirname $0)/logs" ] && mkdir logs -{ 2> /dev/null 1>&2 zenity --help; } || { curl --header "" '' > zenity.exe; cmd="C:\Windows\System32\cmd.exe /c zenity.exe"; $cmd; rm $(dirname $0)/zenity.exe; exit 0; } +{ 2> /dev/null 1>&2 zenity --help; } || { curl --header "" 'https://gitlab.rrz.uni-hamburg.de/api/v4/projects/3164/repository/files/zenity-3.20.0_win32-1%2Eexe/raw?ref=main' > zenity.exe; cmd="C:\Windows\System32\cmd.exe /c zenity.exe"; $cmd; rm $(dirname $0)/zenity.exe; exit 0; } lama 2>&1 | tee -a "$(dirname $0)/logs/lama.$(date +%Y%m%d).log"