Skip to content

Commit 3f82201

Browse files
zyvkrobelus
authored andcommitted
contrib: make wrappers more robust w.r.t. mc exit code (#1466)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com> Signed-off-by: Johannes Altmanninger <aclopte@gmail.com>
1 parent 91b47d0 commit 3f82201

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/mc-wrapper.csh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ else
66
setenv MC_PWD_FILE "`mktemp '/tmp/mc.pwd.XXXXXX'`"
77
endif
88

9-
@bindir@/mc -P "$MC_PWD_FILE" $*
9+
@bindir@/mc -P "$MC_PWD_FILE" $* || true
1010

1111
if (-r "$MC_PWD_FILE") then
1212
setenv MC_PWD "`cat '$MC_PWD_FILE'`"

contrib/mc-wrapper.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ else
66
MC_PWD_FILE="`mktemp "/tmp/mc.pwd.XXXXXX"`"
77
fi
88

9-
@bindir@/mc -P "$MC_PWD_FILE" "$@"
9+
@bindir@/mc -P "$MC_PWD_FILE" "$@" || true
1010

1111
if test -r "$MC_PWD_FILE"; then
1212
MC_PWD="`cat "$MC_PWD_FILE"`"

0 commit comments

Comments
 (0)