[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kdesktop
From: David Faure <faure () kde ! org>
Date: 2005-02-21 9:35:52
Message-ID: 20050221093552.4D7761BB66 () office ! kde ! org
[Download RAW message or body]
CVS commit by faure:
Add -q option requested by Kevin for kio_media
M +8 -3 kdeeject 1.11
--- kdebase/kdesktop/kdeeject #1.10:1.11
@@ -5,5 +5,10 @@
# Copyright GPL v2 by David Faure <david@mandrakesoft.com>
#
-if [ $# = 1 -a "$1" != "--help" ]; then
+if test $# -gt 1 -a "$1" != "--help"; then
+ quiet=0
+ if test "$1" = "-q"; then
+ quiet=1
+ shift
+ fi
# Checking for stuff in the PATH is ugly with sh.
# I guess this is the reason for making this a kde app...
@@ -21,8 +26,8 @@
;;
esac
- if [ $? = 0 ]; then
+ if test $? -eq 0; then
dcop kdesktop default refreshIcons
exit 0
- else
+ elif test $quiet -eq 0; then
kdialog --title "KDE Eject" --error "Eject $1 failed!"
fi
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic