From 8c34b5efe171e9f3b6daf3cefd319872684d121f Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 13 Aug 2019 01:00:58 +1000 Subject: Stop using num2name() in scripts. Turns out I was feeding "01" to it, so that's why it thought things where octal, and "01" is the result we wanted anyway. --- scripts/install/create_sim.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/install') diff --git a/scripts/install/create_sim.sh b/scripts/install/create_sim.sh index 055f802..0aa0941 100755 --- a/scripts/install/create_sim.sh +++ b/scripts/install/create_sim.sh @@ -13,8 +13,7 @@ cd ${OS_PATH}/config k=0 for i in $(seq -w 1 99) do - j=$(num2name "$i") - if [ -e "$j" ] + if [ -e "sim$j" ] then k=$i fi -- cgit v1.1