From 245102072c7d53a803bd31003bcdb9b11f7b4d5d Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 4 Dec 2019 12:18:57 +0100 Subject: [PATCH] Unwrapped the tree usages of vraiable sudo_cmd, because it can be empty --- xorriso-dd-target/xorriso-dd-target | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xorriso-dd-target/xorriso-dd-target b/xorriso-dd-target/xorriso-dd-target index 8ce2ebb5..f4d633e9 100755 --- a/xorriso-dd-target/xorriso-dd-target +++ b/xorriso-dd-target/xorriso-dd-target @@ -410,7 +410,7 @@ list_devices() { fi # Wanted or unwanted filesystem types - fstypes=$("$sudo_cmd" "$lsblk_cmd" -n -o FSTYPE /dev/"$name") + fstypes=$($sudo_cmd "$lsblk_cmd" -n -o FSTYPE /dev/"$name") if test "$?" -gt 0 then fstypes="lsblk_fstype_error" @@ -561,7 +561,7 @@ write_image() { then echo " $sudo_cmd $umount_cmd $i" else - if "$sudo_cmd" "$umount_cmd" "$i" + if $sudo_cmd "$umount_cmd" "$i" then echo "Unmounted: $i" else @@ -594,7 +594,7 @@ write_image() { else echo "Performing:" echo " $sudo_cmd $dd_cmd if='${1}' bs=1M of=/dev/'${2}' ; sync" - "$sudo_cmd" "$dd_cmd" if="${1}" bs=1M of=/dev/"${2}" ; sync + $sudo_cmd "$dd_cmd" if="${1}" bs=1M of=/dev/"${2}" ; sync fi # >>> ??? Erase possible GPT backup table at end of device ?