diff options
author | Max Rees <maxcrees@me.com> | 2019-07-20 21:01:21 -0400 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2019-07-20 21:01:21 -0400 |
commit | 164e656bacd0526c41f94b670e2c6ac23da35080 (patch) | |
tree | a8dde1ab0507098dc10f6e4c5a97785c66d89dc9 /abuild.in | |
parent | 5ecfc84bc620859a57c8364bda636cbca14c46e6 (diff) | |
download | abuild-164e656bacd0526c41f94b670e2c6ac23da35080.tar.gz abuild-164e656bacd0526c41f94b670e2c6ac23da35080.tar.bz2 abuild-164e656bacd0526c41f94b670e2c6ac23da35080.tar.xz abuild-164e656bacd0526c41f94b670e2c6ac23da35080.zip |
abuild: use case instead of grep for normalize_target_path
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1395,7 +1395,9 @@ scan_shared_objects() { # path (2nd arg). normalize_target_path() { local path=$1 - (printf '%s' "$path" | grep -q '^/') || path=$(dirname "$2")/$path + case "$path" in + /*) path="$(dirname "$2")/$path";; + esac local oifs="$IFS" pathstr= i= IFS='/' |