From 82437f5e457074a25abece762cf24b06b0a2c3b7 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 5 Jul 2010 16:44:19 +0200 Subject: Fix missing quotes in localsmsadmin. --- localsmsadmin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'localsmsadmin') 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 -- cgit v1.2.3