Merge pull request #21 from noocsharp/master

Fix error with non-interactive use
This commit is contained in:
dylan 2020-11-12 05:20:01 +02:00 committed by GitHub
commit 6b821ac913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
pash
View File

@ -217,7 +217,7 @@ main() {
# Ensure that we leave the terminal in a usable # Ensure that we leave the terminal in a usable
# state on exit or Ctrl+C. # state on exit or Ctrl+C.
trap 'stty echo icanon' INT EXIT [ -t 1 ] && trap 'stty echo icanon' INT EXIT
case $1 in case $1 in
a*) pw_add "$2" ;; a*) pw_add "$2" ;;