diff options
author | Dan Horák <dan@danny.cz> | 2010-03-25 15:50:44 +0100 |
---|---|---|
committer | Dan Horák <dan@danny.cz> | 2010-03-25 15:50:44 +0100 |
commit | 7d6c34c3256c24124368b411f31bdb657f60764c (patch) | |
tree | d73f1d9724f119f7e94eaaeb335c951ac9b93388 /device_cio_free | |
parent | 419d23819b7f46cb41ce9fda16b47823e94fe86f (diff) | |
download | utils-7d6c34c3256c24124368b411f31bdb657f60764c.tar.gz utils-7d6c34c3256c24124368b411f31bdb657f60764c.tar.xz utils-7d6c34c3256c24124368b411f31bdb657f60764c.zip |
switch from basename/dirname to shell pattern matching
Diffstat (limited to 'device_cio_free')
-rw-r--r-- | device_cio_free | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/device_cio_free b/device_cio_free index a596d89..92bad0e 100644 --- a/device_cio_free +++ b/device_cio_free @@ -80,8 +80,8 @@ wait_on_device() } # check how we were called -CMD=$(basename "$0") -DIR=$(dirname "$0") +CMD=${0##*/} +DIR=${0%/*} case $CMD in "dasd_cio_free") CONFIG=$DASDCONFIG |