From b2075df485b3be5075d5bc78becd0ee7aabf888c Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Sat, 2 Mar 2019 20:33:52 +0200 Subject: [PATCH] nand-sata-install: fix exit -1 - impossible exit code Someone wrote ridicilous stuff. There is only one exit code range - [0-255]. There is no negative return codes in Unix shells. --- packages/bsp/common/usr/sbin/nand-sata-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bsp/common/usr/sbin/nand-sata-install b/packages/bsp/common/usr/sbin/nand-sata-install index 1705f69b9..154d4cbe8 100755 --- a/packages/bsp/common/usr/sbin/nand-sata-install +++ b/packages/bsp/common/usr/sbin/nand-sata-install @@ -303,7 +303,7 @@ create_armbian() if [[ $(type -t write_uboot_platform) != function ]]; then echo "Error: no u-boot package found, exiting" - exit -1 + exit 1 fi write_uboot_platform "$DIR" $emmccheck