diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-28 21:41:14 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-28 21:41:14 +0200 |
commit | 58e2e795851d40c1e298354a264aa03eca1717e8 (patch) | |
tree | 6b655beff2fd9ac1ce8bae47407a144edce59a09 /scripts | |
parent | df25a2fd0779277dd0f43d070e4a15f0dc16bacc (diff) | |
parent | dc957bbf471a08fa3f1764f4897cde1360d1c074 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-image.sh | 8 |
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" |