Permalink
Browse files

Added ugly hack to workaround systemd-nspawn messing up stdin

  • Loading branch information...
WorMzy committed Jan 30, 2013
1 parent af9defe commit 608a091a906fd4acefa7d8fde1ab362022ab4ba0
Showing with 2 additions and 0 deletions.
  1. +2 −0 functions/compilepackagefunctions
@@ -97,6 +97,8 @@ function postbuild {
# Check package exists, confirm completion, and prompt user to install
if [ -f ${_pkg} ]; then
echo "${GREEN}==>${WHITE} Compilation complete, installing...${COLRESET}"
term="/dev/$(ps -p$$ -o tty="")"
exec < $term
sudo pacman -U ${_pkg}
else
echo "${RED}==>${WHITE} Could not find '${_pkg}', install manually${COLRESET}"

0 comments on commit 608a091

Please sign in to comment.