forked from kiss-community/kiss
kiss: Revert tty change. Closes #119
This commit is contained in:
parent
5a0592abce
commit
2ba1a2a0c5
7
kiss
7
kiss
@ -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]'
|
||||
|
Loading…
Reference in New Issue
Block a user