diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-08-15 17:42:02 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-09-30 04:57:25 +0200 |
commit | 60c1f2857bad53deed4a8849c1d733dc7d526379 (patch) | |
tree | 69ef8528c8e0cce4dfc9ec8642ae19f6a2fba23a /scripts/makepkg.sh.in | |
parent | 699937e94d0f9614474e50bf2a77acb4a4619ab0 (diff) | |
download | pacman-60c1f2857bad53deed4a8849c1d733dc7d526379.tar.gz pacman-60c1f2857bad53deed4a8849c1d733dc7d526379.tar.xz |
makepkg: move negation in inequality comparisons
This commit changes the few remaining instances of:
[[ ! $foo = "$bar" ]]
to the more common:
[[ $foo != "$bar" ]]
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 67a3116f..f9494037 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1032,12 +1032,12 @@ source_has_signatures() { run_pacman() { local cmd - if [[ ! $1 = -@(T|Qq) ]]; then + if [[ $1 != -@(T|Qq) ]]; then cmd=("$PACMAN_PATH" $PACMAN_OPTS "$@") else cmd=("$PACMAN_PATH" "$@") fi - if [[ ! $1 = -@(T|Qq) ]]; then + if [[ $1 != -@(T|Qq) ]]; then if type -p sudo >/dev/null; then cmd=(sudo "${cmd[@]}") else @@ -1194,7 +1194,7 @@ generate_one_checksum() { sum="SKIP" ;; *) - if [[ ! $netfile = *.@(sig?(n)|asc) ]]; then + if [[ $netfile != *.@(sig?(n)|asc) ]]; then local file file="$(get_filepath "$netfile")" || missing_source_file "$netfile" sum="$(openssl dgst -${integ} "$file")" @@ -1432,7 +1432,7 @@ check_pgpsigs() { esac for file in "${all_sources[@]}"; do file="$(get_filename "$file")" - if [[ ! $file = *.@(sig?(n)|asc) ]]; then + if [[ $file != *.@(sig?(n)|asc) ]]; then continue fi @@ -3238,7 +3238,7 @@ PACMAN_PATH=$(type -P $PACMAN) # check if messages are to be printed using color unset ALL_OFF BOLD BLUE GREEN RED YELLOW -if [[ -t 2 && ! $USE_COLOR = "n" ]] && check_buildenv "color" "y"; then +if [[ -t 2 && $USE_COLOR != "n" ]] && check_buildenv "color" "y"; then # prefer terminal safe colored and bold text when tput is supported if tput setaf 0 &>/dev/null; then ALL_OFF="$(tput sgr0)" |