Skip to content

Commit

Permalink
select/guard: fixed bashism
Browse files Browse the repository at this point in the history
This closes bug #105, as well as #530094 on bugs.debian.org.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
  • Loading branch information
jeffpc committed May 29, 2009
1 parent ca0fafa commit 68ecfa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions guilt-guard
Expand Up @@ -12,12 +12,12 @@ print_guards()
echo "$1: $guards"
}

if [ "$1" == "-l" ] || [ "$1" == "--list" ]; then
if [ "$1" = "-l" -o "$1" = "--list" ]; then
get_full_series | while read patch; do
print_guards "$patch"
done
exit 0
elif [ "$1" == "-n" ] || [ "$1" == "--none" ]; then
elif [ "$1" = "-n" -o "$1" = "--none" ]; then
patch="$2"
if [ -z "$patch" ]; then
patch=`get_top`
Expand Down
2 changes: 1 addition & 1 deletion guilt-select
Expand Up @@ -16,7 +16,7 @@ select_guards()
echo "$@" | sed -e 's/ /\n/g' | sort | uniq > "$guards_file"
}

if [ $# == 0 ]; then
if [ $# -eq 0 ]; then
if [ -s "$guards_file" ]; then
cat "$guards_file"
else
Expand Down

0 comments on commit 68ecfa3

Please sign in to comment.