kiss: Read alternatives over stdin
This commit is contained in:
parent
e4107420f4
commit
e8983a341b
7
kiss
7
kiss
|
@ -1239,7 +1239,12 @@ args() {
|
||||||
# keystrokes once you memorize the commands.
|
# keystrokes once you memorize the commands.
|
||||||
case $action in
|
case $action in
|
||||||
a|alternatives)
|
a|alternatives)
|
||||||
if [ "$1" ]; then
|
if [ "$1" = - ]; then
|
||||||
|
while read -r pkg path; do
|
||||||
|
pkg_swap "$pkg" "$path"
|
||||||
|
done
|
||||||
|
|
||||||
|
elif [ "$1" ]; then
|
||||||
pkg_swap "$@"
|
pkg_swap "$@"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue