From 849a6ae1effb782e4dcc74f4bc3c78a1afc516d6 Mon Sep 17 00:00:00 2001 From: Christopher Norris Date: Fri, 22 Jan 2021 02:13:46 +0000 Subject: [PATCH 1/2] Fix syntax error from refactoring case statement Originated in https://github.com/SolidHal/PrawnOS/commit/0bd5575b0b84bcf469cd0b94351c10f1a0a459f9 --- scripts/InstallScripts/InstallPrawnOS.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/InstallScripts/InstallPrawnOS.sh b/scripts/InstallScripts/InstallPrawnOS.sh index 701b06acf..f5b25b432 100755 --- a/scripts/InstallScripts/InstallPrawnOS.sh +++ b/scripts/InstallScripts/InstallPrawnOS.sh @@ -40,7 +40,7 @@ get_emmc_devname() { local devname=$(ls /dev/mmcblk* | grep -F boot0 | sed "s/boot0//") if [ -z "$devname" ] then - echo "Unknown device! can't determine emmc devname. Please file an issue with the output of fdisk -l if you get this on a supported device"; exit 1;; + echo "Unknown device! can't determine emmc devname. Please file an issue with the output of fdisk -l if you get this on a supported device"; exit 1; fi echo $devname } From ba2a01c0e46109b9b688623fc6c033f732e86ca2 Mon Sep 17 00:00:00 2001 From: Christopher Norris Date: Fri, 22 Jan 2021 02:31:18 +0000 Subject: [PATCH 2/2] Use basename of returned path Caller is expecting this. --- scripts/InstallScripts/InstallPrawnOS.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/InstallScripts/InstallPrawnOS.sh b/scripts/InstallScripts/InstallPrawnOS.sh index f5b25b432..9fb6ba84e 100755 --- a/scripts/InstallScripts/InstallPrawnOS.sh +++ b/scripts/InstallScripts/InstallPrawnOS.sh @@ -42,7 +42,7 @@ get_emmc_devname() { then echo "Unknown device! can't determine emmc devname. Please file an issue with the output of fdisk -l if you get this on a supported device"; exit 1; fi - echo $devname + echo $(basename $devname) }