diff options
author | Elijah Saxon <elijah@riseup.net> | 2005-07-06 08:03:31 +0000 |
---|---|---|
committer | Elijah Saxon <elijah@riseup.net> | 2005-07-06 08:03:31 +0000 |
commit | e8cf41e99e1650ba8c8f187ae5e3ca3c0fa56ee1 (patch) | |
tree | b64b17053293f05252cf3833f553f4fa91c6f344 /ninjahelper | |
parent | d87e87882fa8946be61740636208fd8a6457816a (diff) | |
download | backupninja-e8cf41e99e1650ba8c8f187ae5e3ca3c0fa56ee1.tar.gz backupninja-e8cf41e99e1650ba8c8f187ae5e3ca3c0fa56ee1.tar.bz2 |
fixed handling of * in easydialog.
added .disabled
Diffstat (limited to 'ninjahelper')
-rwxr-xr-x | ninjahelper | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ninjahelper b/ninjahelper index 9631b80..9568b53 100755 --- a/ninjahelper +++ b/ninjahelper @@ -90,15 +90,11 @@ do_run_test() { } do_disable() { - dir=`dirname $1` - base=`basename $1` - mv $dir/$base $dir/0-$base + mv $1 $1.disabled } do_enable() { - dir=`dirname $1` - base=`basename $1` - mv $dir/$base $dir/${base:2} + mv $1 ${1%.*} } do_rename() { @@ -111,7 +107,7 @@ do_rename() { doaction() { action=$1 base=`basename $action` - if [ "${base:0:2}" == "0-" ]; then + if [ "${base##*.}" == "disabled" ]; then enable="enable"; else enable="disable"; |