error at the end

This commit is contained in:
fred 2022-04-24 18:27:28 +02:00
parent cab9290bb9
commit b51899157b
1 changed files with 5 additions and 6 deletions

View File

@ -555,7 +555,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'
read finish
[[ \! \$1 ]] && read finish
rm ~/astroport/Add_${MEDIAKEY}_script.sh
" >> ~/astroport/Add_${MEDIAKEY}_script.sh
@ -597,12 +597,11 @@ FILE_SIZE=$(echo "${FILE_BSIZE}" | awk '{ split( "B KB MB GB TB PB" , v ); s=1;
#fi
########################################################################
########################################################################
echo "${MEDIAKEY} = RECORDED TO IPFS."
cat /tmp/${MEDIAKEY}.log
if [ ! $2 ]; then
[ $? == 0 ] && \
zenity --question --width 300 --text "OK! ~/astroport/Add_${MEDIAKEY}_script.sh ($FILE_SIZE). Voulez-vous lancer immédiatement l'ajout dans Astroport ?"; \
[ $? == 0 ] && bash ~/astroport/Add_${MEDIAKEY}_script.sh "no"; zenity --question --width 300 --text "Collez le résultat dans votre Journal. FIN."; || exit 0 \
|| zenity --warning --width 300 --text "Désolé une erreur est survenue... /tmp/${MEDIAKEY}.log" && exit 1
[ $? == 0 ] && bash ~/astroport/Add_${MEDIAKEY}_script.sh "noh265"; zenity --warning --width 300 --text "Collez le résultat dans votre Journal. FIN.";
fi
[ $? != 0 ] && zenity --warning --width 300 --text "Désolé une erreur est survenue... /tmp/${MEDIAKEY}.log"; exit 1
echo "${MEDIAKEY} = RECORDED TO IPFS."
cat /tmp/${MEDIAKEY}.log