From 6617d2f84d19f2b50ee3c9eb24088e2dce6f11ff Mon Sep 17 00:00:00 2001 From: sean Date: Wed, 10 Jul 2019 14:24:25 -0700 Subject: [PATCH] tweaks --- setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 4c32551..9d710ed 100644 --- a/setup.sh +++ b/setup.sh @@ -339,13 +339,13 @@ echo "echo '${admin}:${rootpassword}' | chpasswd" >> /mnt/setup-chroot.sh echo "exit 0" >> /mnt/setup-chroot.sh -errors=$(chmod +x /mnt/setup-chroot.sh 2>&1 1>/dev/null) -if ! ["$?" = "0" ]; then +errors=`chmod +x /mnt/setup-chroot.sh 2>&1 1>/dev/null` +if ! [ "$?" = "0" ]; then echo "Failed to set execution permission on chroot script - $errors" exit 45 fi -results=`chroot /mnt /setup-chroot.sh` +results=$(chroot /mnt /setup-chroot.sh) if ! [ "$?" = "0" ]; then echo "Error in chroot environment - $results" exit $?