[Blends-commit] [SCM] ezgo branch, master, updated. 363a74aa4e63a9e6e239d3db3ee55ca51ac64c7d

Franklin franklin at goodhorse.idv.tw
Sat Feb 28 08:03:33 UTC 2015


The following commit has been merged in the master branch:
commit 8e58420ddd777e419cdebbb37aabf43d09a65f9b
Author: Franklin <franklin at goodhorse.idv.tw>
Date:   Sat Feb 28 15:51:49 2015 +0800

    Modify upgrade shell for xfce

diff --git a/ezgo-misc/ask_for_upgrade.sh b/ezgo-misc/ask_for_upgrade.sh
index c00c979..e61c18a 100755
--- a/ezgo-misc/ask_for_upgrade.sh
+++ b/ezgo-misc/ask_for_upgrade.sh
@@ -1,6 +1,12 @@
 #!/bin/sh
 
-kdialog --yesno "系統將進行更新。注意:此動作一旦開始就無法中止,否則可能造成系統問題。要繼續嗎?"
+if [ -x /usr/bin/kdialog ]; then
+	kdialog --yesno "系統將進行更新。注意:此動作一旦開始就無法中止,否則可能造成系統問題。要繼續嗎?"
+elif [ -x /usr/bin/zenity ]; then
+	zenity --question --text  "系統將進行更新。注意:此動作一旦開始就無法中止,否則可能造成系統問題。要繼續嗎?"
+else
+	exit
+fi
 
 ans=$?
 

-- 
Blend for educatipn with asian specific adaptations



More information about the Blends-commit mailing list