瀏覽代碼

Check that completion file exists

Bob Mottram 9 年之前
父節點
當前提交
bcd762e8dd
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-selector

+ 4
- 0
src/freedombone-selector 查看文件

59
 
59
 
60
 function app_is_installed {
60
 function app_is_installed {
61
 	app_name="$1"
61
 	app_name="$1"
62
+	if [ ! -f $COMPLETION_FILE ]; then
63
+		echo "0"
64
+	fi
65
+
62
 	if ! grep -Fxq "install_${app_name}" $COMPLETION_FILE; then
66
 	if ! grep -Fxq "install_${app_name}" $COMPLETION_FILE; then
63
 		echo "0"
67
 		echo "0"
64
 	else
68
 	else