瀏覽代碼

Make mkconfig loop

Streetwalrus Einstein 10 年之前
父節點
當前提交
1a1c0eeeb8
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      mkconfig

+ 3 - 2
mkconfig

@@ -1,10 +1,11 @@
 #!/bin/bash
 
 old_PS3=PS3
-PS3='Choose your target platform : '
+PS3='#? '
+echo "Platform:"
 select TARGET in nspire sfml; do
 	rm config.mk -f
 	echo "include platform/$TARGET/rules.mk" >> config.mk
-	break
+	[[ $TARGET == "" ]] || break
 done
 PS3=old_PS3