aboutsummaryrefslogtreecommitdiff
path: root/libs/common
diff options
context:
space:
mode:
Diffstat (limited to 'libs/common')
-rwxr-xr-xlibs/common4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/common b/libs/common
index b7a7022e..28a34cf7 100755
--- a/libs/common
+++ b/libs/common
@@ -414,7 +414,7 @@ arguments_concat() {
for argument in "$@"
do
- if ! [[ -z "$concat" ]]
+ if [[ -n "$concat" ]]
then
concat="$concat""$delimiter""$argument"
else
@@ -432,7 +432,7 @@ execute_root() {
printf 1>&2 '%s' 'Running command as root: '
printf 1>&2 '%b\n' "$*"
- if ! [[ -z "$sudo" ]]
+ if [[ -n "$sudo" ]]
then
sudo "$@"
else