Skip to content

Commit

Permalink
Fix incorrect bootstrap module predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
sgleizes committed Nov 27, 2020
1 parent 8d561a0 commit 77f1ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ _xsh_bootstrap_module() {
[ "$sh" = 'posix' ] && ext='sh' || ext="$sh"
rc="$XSH_CONFIG_DIR/$sh/module/core/${XSH_RUNCOM_PREFIX}interactive.$ext"

if [ ! -d "$sh/module" ]; then
if [ ! -d "$XSH_CONFIG_DIR/$sh/module" ]; then
_xsh_log "[$sh] creating default module runcom: ${rc#$XSH_CONFIG_DIR/}"
command mkdir -p "${rc%/*}"
command cat >"$rc" <<EOF
Expand Down

0 comments on commit 77f1ed2

Please sign in to comment.