From 30be4a6602dee93d8a663387ad25207e55595421 Mon Sep 17 00:00:00 2001 From: Miculcy Brian Date: Thu, 5 Oct 2006 08:34:37 +0000 Subject: [PATCH] Now it should be clear how to use it... SVN revision: 26349 --- eap_to_desktop | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/eap_to_desktop b/eap_to_desktop index 94c6bb38d..dafdb1d76 100755 --- a/eap_to_desktop +++ b/eap_to_desktop @@ -8,7 +8,11 @@ # Don't use this on module.eaps, as the icon ends up in the wrong place. WD=`pwd` -FILENAME=`basename $@ .eap` + +# small hack to avoid people using *.eap and don't know what to do... +if [ ! "$i" == "*.eap" ]; then + FILENAME=`basename '$1' .eap` +fi if [ -e "$FILENAME.eap" ]; then rm -fr /tmp/convert.eap/$FILENAME @@ -83,5 +87,7 @@ if [ -e "$FILENAME.eap" ]; then cd $WD >/dev/null rm -fr /tmp/convert.eap/$FILENAME else - echo "Not a .eap file." + echo -e "\nExample:" + echo "cd ~/.e/e/applications/all/" + echo -e "$0 firefox.eap\n" fi