Skip to content

Commit 7d6fdeb

Browse files
authored
fix: workaround for motd messing up midnight commander subshell, issue #2003 (#2004)
1 parent e411c77 commit 7d6fdeb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

system_files/desktop/shared/usr/libexec/ublue-motd

+7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
#!/usr/bin/bash
2+
3+
# Exit immediately if this is a Midnight Commander (mc) subshell.
4+
# Fixes issue #2003.
5+
if [[ -n "$MC_SID" ]]; then
6+
exit 0
7+
fi
8+
29
escape() {
310
sed 's/[&/\]/\\&/g' <<< "$1"
411
}

0 commit comments

Comments
 (0)