File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
contrib/containers/guix/scripts Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ set -eo pipefail
44
55WORKSPACE_PATH=" ${1:- $(pwd)} "
66
7- if [[ ! -d " $WORKSPACE_PATH " ]]; then
8- echo " $0 : $WORKSPACE_PATH is not a valid directory, exiting!"
7+ if [[ ! -d " ${ WORKSPACE_PATH} " || ! " ${WORKSPACE_PATH} " = / * || ! -f " ${WORKSPACE_PATH} /contrib/guix/libexec/prelude.bash " ]]; then
8+ echo " ${0} : ${ WORKSPACE_PATH} is not a valid directory, exiting!"
99 exit 1
1010fi
1111
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ set -eo pipefail
44
55WORKSPACE_PATH=" ${1:- $(pwd)} "
66
7- if [[ ! -d " $WORKSPACE_PATH " ]]; then
8- echo " $0 : $WORKSPACE_PATH is not a valid directory, exiting!"
7+ if [[ ! -d " ${ WORKSPACE_PATH} " || ! " ${WORKSPACE_PATH} " = / * || ! -f " ${WORKSPACE_PATH} /contrib/guix/guix-build " ]]; then
8+ echo " ${0} : ${ WORKSPACE_PATH} is not a valid directory, exiting!"
99 exit 1
1010fi
1111
You can’t perform that action at this time.
0 commit comments