summaryrefslogtreecommitdiff
path: root/scripts/create-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/create-image.sh')
-rwxr-xr-xscripts/create-image.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/create-image.sh b/scripts/create-image.sh
index fda269990..bbebcf4d2 100755
--- a/scripts/create-image.sh
+++ b/scripts/create-image.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
grubinstall=1
@@ -30,7 +30,7 @@ fi
printf "Checking if grub is installed"
grub=$(which grub)
-if [ -x $grub ];then
+if [ ! -z $grub -a -x $grub ];then
printf "...okay\n"
else
printf "...failed\n"
@@ -40,7 +40,7 @@ fi
printf "Checking if parted is installed"
parted=$(which parted)
-if [ -x $parted ];then
+if [ ! -z $parted -a -x $parted ];then
printf "...okay\n"
else
printf "...failed\n"
@@ -50,7 +50,7 @@ fi
printf "Checking if qemu-img is installed"
qimg=$(which qemu-img)
-if [ -x $qimg ];then
+if [ ! -z $qimg -a -x $qimg ];then
printf "...okay\n"
else
printf "...failed\n"