Skip to content

Commit 5c180e0

Browse files
austin987SolidEva
authored andcommitted
scripts: fix syntax errors resulting from moving code around
Additionally, cut out the /dev/ prefix
1 parent dfd1aaa commit 5c180e0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

kernel/resources/shared/FlashKernelPartition.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ is_device_veyron() {
5050
# returns the full path to the emmc device, in the form /dev/mmcblk#
5151
get_emmc_devname() {
5252
local devname=$(find /dev -name "mmcblk*boot0" | sed "s/boot0//")
53-
if [ -z "$devname" ]
54-
then
55-
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;
53+
if [ -z "$devname" ]; then
54+
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"
55+
exit 1
5656
fi
5757
echo $devname
5858
}

scripts/InstallScripts/InstallPrawnOS.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ is_device_veyron() {
6666
# returns the full path to the emmc device, in the form /dev/mmcblk#
6767
get_emmc_devname() {
6868
local devname=$(find /dev -name "mmcblk*boot0" | sed "s/boot0//")
69-
if [ -z "$devname" ]
70-
then
71-
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;
69+
if [ -z "$devname" ]; then
70+
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"
71+
exit 1
7272
fi
7373
echo $devname
7474
}

0 commit comments

Comments
 (0)