summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalsmsadmin2
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