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 $?