From f18c37229bf84432ebfa77e4360cb99b561c5768 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Mon, 15 Apr 2019 03:19:20 -0400 Subject: libs/project: Fail install check, properly If the $install_path directory does not exist or a file which should be present in the install directory isn't, fail. --- libs/project | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libs/project b/libs/project index 4b6d38d7..fb986f89 100755 --- a/libs/project +++ b/libs/project @@ -988,6 +988,11 @@ project_install_check() { local rule local path + if ! [[ -d $install_path ]] + then + return 1 + fi + # Install built files first. for argument in "" "$@" do @@ -1017,7 +1022,7 @@ project_install_check() { if ! [[ -f "$destination_path" ]] && ! [[ -d "$destination_path" ]] then - false + return 1 fi done < "$configs_install_path" done @@ -1051,7 +1056,7 @@ project_install_check() { if ! [[ -f "$destination_path" ]] && ! [[ -d "$destination_path" ]] then - false + return 1 fi done < "$install_install_path" done -- cgit v1.2.3-70-g09d2