Skip to content
Snippets Groups Projects
Commit 13fb76e8 authored by Riaposov, Aleksandr Olegovich's avatar Riaposov, Aleksandr Olegovich
Browse files

added paths to lama and zenity

parent 51cbea80
No related branches found
No related tags found
No related merge requests found
...@@ -394,7 +394,7 @@ ${gitrepotext}" \ ...@@ -394,7 +394,7 @@ ${gitrepotext}" \
else zenity --info --width 240 --height 240 --text "This option is not yet supported for your OS" else zenity --info --width 240 --height 240 --text "This option is not yet supported for your OS"
fi fi
elif [[ $updatewindow = "Update LAMA" ]]; then 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") lamaupdated=$(zenity --info --width 240 --height 240 --text "LAMA was updated" --ok-label "Reload LAMA")
if [ $? -eq 0 ]; then bash $0 & exit 0; fi if [ $? -eq 0 ]; then bash $0 & exit 0; fi
fi fi
...@@ -416,6 +416,6 @@ ${gitrepotext}" ...@@ -416,6 +416,6 @@ ${gitrepotext}"
[ ! -d "$(dirname $0)/logs" ] && mkdir logs [ ! -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" lama 2>&1 | tee -a "$(dirname $0)/logs/lama.$(date +%Y%m%d).log"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment