diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-07-05 16:44:19 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-07-05 16:44:19 +0200 |
commit | 82437f5e457074a25abece762cf24b06b0a2c3b7 (patch) | |
tree | 81514d591a91762d9dc7dd3efc9a58649aeb4c60 /localsmsadmin | |
parent | f3d22a4d2e253384deaf502f6238859756af85a0 (diff) |
Fix missing quotes in localsmsadmin.
Diffstat (limited to 'localsmsadmin')
-rwxr-xr-x | localsmsadmin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/localsmsadmin b/localsmsadmin index 1e070a8..fe6b7c5 100755 --- a/localsmsadmin +++ b/localsmsadmin @@ -31,7 +31,7 @@ findobjects() { cd "$vardir/$type" && find -mindepth 1 -maxdepth 1 -type d -printf '%f\n' elif [ -n "$regex" ]; then cd "$vardir/$type" && find -mindepth 1 -maxdepth 1 -type d -regex "$regex" - elif [ -n $args ]; then + elif [ -n "$args" ]; then args_multiline="$(echo "$args" | perl -pe 's/[[:space:]]+/\n/g')" cd "$vardir/$type" && ! find -mindepth 1 -maxdepth 1 -type d -printf '%f\n' \ | grep -Fx "$args_multiline" || true |