Skip to content

Commit

Permalink
ovmenu-ng: redirect stderr to the console for interactive shell
Browse files Browse the repository at this point in the history
Fixes regression from commit a09ef7b

Closes #252
  • Loading branch information
MaxKellermann committed Feb 4, 2022
1 parent 9abb700 commit 7f49bcb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions meta-ov/recipes-apps/ovmenu-ng/files/ovmenu-ng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,17 @@ function yesno_exit(){
0)
clear
cd

# Redirecting stderr to stdout (= the console)
# because stderr is currently connected to
# systemd-journald, which breaks interactive
# shells.
if test -x /bin/bash; then
/bin/bash --login
/bin/bash --login 2>&1
elif test -x /bin/ash; then
/bin/ash -i
/bin/ash -i 2>&1
else
/bin/sh
/bin/sh 2>&1
fi
;;
esac
Expand Down

0 comments on commit 7f49bcb

Please sign in to comment.