zenity error for non xbian user

This commit is contained in:
qo-op 2021-03-01 02:25:27 +01:00
parent 61c905af78
commit a7c442eac1
1 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,11 @@ else
fi
# File is placed in ROOT ~/astroport ?
[[ $PREFIX == "" ]] && echo "WARNING. $TYPE is root file UNTREATED" && exit 1
if [[ $PREFIX == "" ]]
then
[[ "$USER" != "xbian" ]] && zenity --warning --width 300 --text "Désolé votre fichier ne peut pas être traité"
echo "WARNING. $TYPE is root file UNTREATED" && exit 1
fi
echo "ADDING ${path}${file} to IPFS and create ${PREFIX}ASTRXBIAN INDEX"
echo "~/.zen/ipfs/.${IPFSNODEID}/astroport/kodi/vstream/${PREFIX}ASTRXBIAN"