Skip to content

Commit

Permalink
jlogin: quote $makefile vars
Browse files Browse the repository at this point in the history
this fix a situation where a CBSD_CWD expands to a directory containing spaces

Pointed out: @lapo-luchini, #750
  • Loading branch information
olevole committed Dec 22, 2023
1 parent 8bf2e68 commit adffae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sudoexec/jlogin
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ emulator="jail" # for jname_is_multiple

# check for cloud function when CBSDfile exist
Makefile="${CBSD_PWD}/CBSDfile"
if [ -r ${Makefile} ]; then
if [ -r "${Makefile}" ]; then
[ -z "${CBSDFILE_RECURSIVE}" ] && ${ECHO} "${N1_COLOR}found CBSDfile: ${N2_COLOR}${Makefile}${N0_COLOR}"
. ${Makefile}

Expand Down

0 comments on commit adffae8

Please sign in to comment.