kiss: Revert tty change. Closes #119

This commit is contained in:
Dylan Araps 2020-03-06 16:29:41 +02:00
parent 5a0592abce
commit 2ba1a2a0c5
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 6 deletions

7
kiss
View File

@ -1219,11 +1219,6 @@ args() {
die "Arguments contain invalid characters: '!*[]'"
esac
# Abort early if output is not a TTY and the requirement is that it
# be so (password prompts, user input, etc). This is a safeguard.
[ "${action##[bciru]*}" ] || [ -t 1 ] ||
die "Output not a tty"
# Parse some arguments earlier to remove the need to duplicate code.
case $action in
c|checksum|s|search)
@ -1315,7 +1310,7 @@ args() {
l|list) pkg_list "$@" ;;
u|update) pkg_updates ;;
s|search) for pkg; do pkg_find "$pkg" all; done ;;
v|version) log kiss 1.7.5 ;;
v|version) log kiss 1.7.6 ;;
h|help|-h|--help|'')
log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'