From 68ecfa3468aed0795afd9949f4ce27fd35b0bfa3 Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Fri, 29 May 2009 16:39:30 -0400 Subject: [PATCH] select/guard: fixed bashism This closes bug #105, as well as #530094 on bugs.debian.org. Signed-off-by: Josef 'Jeff' Sipek --- guilt-guard | 4 ++-- guilt-select | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/guilt-guard b/guilt-guard index 15bcf0e..a515371 100755 --- a/guilt-guard +++ b/guilt-guard @@ -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` diff --git a/guilt-select b/guilt-select index d4307d9..548ae49 100755 --- a/guilt-select +++ b/guilt-select @@ -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 -- 2.11.4.GIT