mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 17:31:52 -05:00
pacdiff: allow multiple separated options
loop over arguments, this will allow adding options such as --nocolor Signed-off-by: Jonathan Frazier <eyeswide@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
bcde027091
commit
05e954d2cd
@ -64,8 +64,8 @@ cmd() {
|
||||
fi
|
||||
}
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
case $1 in
|
||||
while [[ -n "$1" ]]; do
|
||||
case "$1" in
|
||||
-l|--locate)
|
||||
locate=1;;
|
||||
-V|--version)
|
||||
@ -75,7 +75,8 @@ if [ $# -gt 0 ]; then
|
||||
*)
|
||||
usage; exit 1;;
|
||||
esac
|
||||
fi
|
||||
shift
|
||||
done
|
||||
|
||||
# see http://mywiki.wooledge.org/BashFAQ/020
|
||||
while IFS= read -u 3 -r -d '' pacfile; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user