From 6b7b0ce0a8017092d8f18c09223b502067634cf2 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 9 Apr 2014 17:50:25 +0200 Subject: fix minor issues --- scripts/install-rpi.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install-rpi.sh b/scripts/install-rpi.sh index 56a1af8bd..0cf88cf4c 100755 --- a/scripts/install-rpi.sh +++ b/scripts/install-rpi.sh @@ -7,13 +7,14 @@ if [ $(id -u) -ne 0 ];then exit 1 fi +f=0 for tool in parted sfdisk mkfs.vfat mkfs.ext4;do if ! which $tool >/dev/null; then echo "Checking if $tool is installed... failed" f=1 fi done -[[ $f -eq 1 ]] && exit 1 +if [ $f -eq 1 ];then exit 1;fi datadir=0 keep=0 @@ -48,7 +49,7 @@ else echo "WARNING: This will destroy all data on $1 - type Yes to continue!" read y if [ "$y" = "Yes" ];then - $sfdisk -l $1 2>&1 |grep 'No medium' + env LC_ALL=C sfdisk -l $1 2>&1 |grep 'No medium' if [ $? -eq 0 ];then echo "No medium found" exit 1 -- cgit v1.2.3