summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-08-28 21:41:14 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-08-28 21:41:14 +0200
commit58e2e795851d40c1e298354a264aa03eca1717e8 (patch)
tree6b655beff2fd9ac1ce8bae47407a144edce59a09 /scripts
parentdf25a2fd0779277dd0f43d070e4a15f0dc16bacc (diff)
parentdc957bbf471a08fa3f1764f4897cde1360d1c074 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts')
-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"