Permalink
Browse files

Switched from zenity to notify-send

  • Loading branch information...
1 parent 8ff6b91 commit 78ee9cddff4753bc54cb039da5e8543c0c027174 @asergi committed Feb 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 jdownloader
View
@@ -13,21 +13,21 @@ download_updater() {
rm -f jdupdate.jar
echo "$0: Download jdupdate.jar from $MIRROR." >> $LOG_FILE
- curl -vLO $MIRROR/jdupdate.jar >> $LOG_FILE 2>&1 || zenity --error --text \
+ curl -vLO $MIRROR/jdupdate.jar >> $LOG_FILE 2>&1 || notify-send "Error" \
"The JDownloader updater could not be downloaded. \
\nCheck your Internet connection and try again. \
\nThe error log can be found in $LOG_FILE."
rm -f jdupdate.jar.md5
echo "$0: Download jdupdate.jar.md5 from $MIRROR." >> $LOG_FILE
- curl -vLO $MIRROR/jdupdate.jar.md5 >> $LOG_FILE 2>&1 || zenity --error --text \
+ curl -vLO $MIRROR/jdupdate.jar.md5 >> $LOG_FILE 2>&1 || notify-send "Error" \
"The JDownloader updater MD5 sum file could not be downloaded. \
\nCheck your Internet connection and try again. \
\nThe error log can be found in $LOG_FILE."
ACTUAL_MD5SUM=$(md5sum jdupdate.jar | cut -f1 -d" ")
TARGET_MD5SUM=$(cat jdupdate.jar.md5)
- [[ "$ACTUAL_MD5SUM" = "$TARGET_MD5SUM" ]] || zenity --warning --text \
+ [[ "$ACTUAL_MD5SUM" = "$TARGET_MD5SUM" ]] || notify-send "Warning" \
"The MD5 sum of the JDownloader updater mismatches. \
\nEither there was a download error or one of the files \
(downloader or md5 sum file) is not up-to-date. \

0 comments on commit 78ee9cd

Please sign in to comment.