diff --git a/scripts/launcher.sh b/scripts/launcher.sh index 5299cf7..9c17b85 100755 --- a/scripts/launcher.sh +++ b/scripts/launcher.sh @@ -4,7 +4,7 @@ if [ $# -ne 0 ];then exit 1 fi -notify-send "Illustrator CC started." -i "illustratoricon" +notify-send "Illustrator CC" "Illustrator CC launched." -i "illustratoricon" SCR_PATH="aipath" CACHE_PATH="aicache" diff --git a/scripts/sharedFuncs.sh b/scripts/sharedFuncs.sh index 877830e..dc61407 100644 --- a/scripts/sharedFuncs.sh +++ b/scripts/sharedFuncs.sh @@ -199,25 +199,23 @@ function download_component() { if [ "$ariapkg" == "true" ];then show_message "using aria2c to download $4" aria2c -c -x 8 -d "$CACHE_PATH" -o $4 $3 - - if [ $? -eq 0 ];then - notify-send "$4 download completed" -i "download" - fi + downrez=$? elif [ "$curlpkg" == "true" ];then show_message "using curl to download $4" curl $3 -o $1 + downrez=$? else show_message "using wget to download $4" wget "$3" -P "$CACHE_PATH" - - if [ $? -eq 0 ];then - notify-send "$4 download completed" -i "download" - fi + downrez=$? + fi + if [ "$downrez" -eq 0 ];then + notify-send "Illustrator CC" "$4 download completed" -i "download" fi ((tout++)) fi - done + done } function launcher() { diff --git a/scripts/uninstaller.sh b/scripts/uninstaller.sh index f35b6f4..b11638d 100755 --- a/scripts/uninstaller.sh +++ b/scripts/uninstaller.sh @@ -7,7 +7,7 @@ main() { CMD_PATH="/usr/local/bin/illustrator" ENTRY_PATH="/home/$USER/.local/share/applications/illustratorCC.desktop" - notify-send "illustrator uninstaller started" -i "inkscape" + notify-send "Illustrator CC" "illustrator uninstaller started" -i "inkscape" ask_question "you are uninstalling illustrator cc are you sure?" "N" if [ $result == "no" ];then