From b72676d8a0dfedf724b63b27a5a6b5fbef6dd80f Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Wed, 27 Mar 2024 01:44:35 -0600 Subject: [PATCH] fixed missing file check --- usr/bin/smm2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/smm2 b/usr/bin/smm2 index 9e0f2e7..7959475 100755 --- a/usr/bin/smm2 +++ b/usr/bin/smm2 @@ -82,7 +82,7 @@ for d in "${target[@]}";do build_path="${cache_dir}/${d}" requires_sudo="" - source "${bp_path}/config" + [ -f "${bp_path}/config" ] && source "${bp_path}/config" grep -q 'sudo' "${bp_path}/install.sh" && [ "${requires_sudo}" != "0" ] && sudo_check=0