Skip to content
Snippets Groups Projects
Verified Commit 8cfaac6e authored by David Beniamine's avatar David Beniamine
Browse files

Fix bad dest + set Display

parent 1de051bd
No related branches found
No related tags found
No related merge requests found
export DIRECTORIES="" export DIRECTORIES=""
export DESTINATION=""
export TIMEOUT="30" export TIMEOUT="30"
...@@ -3,9 +3,11 @@ ...@@ -3,9 +3,11 @@
mount $DESTINATION mount $DESTINATION
for d in ${DIRECTORIES} for d in ${DIRECTORIES}
do do
rsync $d $DESTINATION/$d echo $d
rsync -a $d $DESTINATION/
done done
umount $DESTINATION umount $DESTINATION
export DISPLAY=:0
zenity --timeout $TIMEOUT --question --title "Sauvegarde terminée." \ zenity --timeout $TIMEOUT --question --title "Sauvegarde terminée." \
--text "Voulez vous procéder à l'extinction automatique de l'ordinateur ?" --text "Voulez vous procéder à l'extinction automatique de l'ordinateur ?"
ans=$? ans=$?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment