From fee79585237463f75b155a895e7b87862865ae1f Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 28 May 2022 04:09:00 +0200 Subject: [PATCH] better finishing delayed batch scripts --- ajouter_video.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ajouter_video.sh b/ajouter_video.sh index 65c900d..dd8b5fa 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -559,9 +559,7 @@ echo "~/.zen/astrXbian/zen/new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${M echo "rm -f /tmp/\${MEDIAKEY}.pass rm -f /tmp/\${MEDIAKEY}.dunikey ## REMOVE KEYS -echo 'Si tout est OK, appuyez dur ENTER, sinon ESC' -[[ ! \$1 ]] && read finish -rm ~/astroport/Add_${MEDIAKEY}_script.sh +mv ~/astroport/Add_${MEDIAKEY}_script.sh ~/astroport/Done_${FILE_NAME}.sh " >> ~/astroport/Add_${MEDIAKEY}_script.sh @@ -607,7 +605,7 @@ zenity --question --width 300 --text "OK! ~/astroport/Add_${MEDIAKEY}_script.sh [ $? == 0 ] && bash ~/astroport/Add_${MEDIAKEY}_script.sh "noh265" \ && zenity --warning --width 300 --text "Ajoutez ce media dans vos journaux public 'qo-op' ou administratif 'moa'" \ && [[ $(cat ~/.zen/game/players/.current/.playerns 2>/dev/null) ]] \ - && xdg-open "http://127.0.0.1:8080/ipns/$(cat ~/.zen/game/players/.current/.playerns)" \ + && xdg-open "http://127.0.0.1:8080/ipns/$(cat ~/.zen/game/players/.current/.playerns)" \ || ( zenity --warning --width 300 --text "Désolé une erreur est survenue... /tmp/${MEDIAKEY}.log" && exit 1 )\ exit 0