Check that completion file exists

This commit is contained in:
Bob Mottram 2016-07-05 16:42:50 +01:00
parent 8d24da1d0c
commit bcd762e8dd
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ function item_in_array {
function app_is_installed { function app_is_installed {
app_name="$1" app_name="$1"
if [ ! -f $COMPLETION_FILE ]; then
echo "0"
fi
if ! grep -Fxq "install_${app_name}" $COMPLETION_FILE; then if ! grep -Fxq "install_${app_name}" $COMPLETION_FILE; then
echo "0" echo "0"
else else