scripts: Remove trailing semicolons

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Jan Alexander Steffens (heftig) 2018-06-19 22:33:57 +02:00 committed by Allan McRae
parent 4e83abaae5
commit e4be26b732
7 changed files with 18 additions and 18 deletions

View file

@ -131,7 +131,7 @@ _pacman() {
D|R) D|R)
_pacman_pkg Qq;; _pacman_pkg Qq;;
F) F)
_arch_incomp 'l list' && _pacman_pkg Slq; _arch_incomp 'l list' && _pacman_pkg Slq
;; ;;
Q) Q)
{ _arch_incomp 'g groups' && _pacman_pkg Qg sort; } || { _arch_incomp 'g groups' && _pacman_pkg Qg sort; } ||

View file

@ -370,7 +370,7 @@ _pacman_get_command() {
# main dispatcher # main dispatcher
_pacman_zsh_comp() { _pacman_zsh_comp() {
local -a args cmds; local -a args cmds
local tmp local tmp
args=( ${${${(M)words:#-*}#-}:#-*} ) args=( ${${${(M)words:#-*}#-}:#-*} )
for tmp in $words; do for tmp in $words; do
@ -465,7 +465,7 @@ _pacman_zsh_comp() {
if (( ${(w)#cmds} == 1 )); then if (( ${(w)#cmds} == 1 )); then
_pacman_action_help _pacman_action_help
else else
return 0; return 0
fi fi
;; ;;
*--sync*) *--sync*)
@ -554,7 +554,7 @@ _pacman_key() {
"$_key_longopts[@]" "$_key_longopts[@]"
;; ;;
*) *)
i=$#; i=$#
while [[ $words[$i] != -* ]] && [[ $words[$i] != "pacman-key" ]];do while [[ $words[$i] != -* ]] && [[ $words[$i] != "pacman-key" ]];do
i=$(($i-1)) i=$(($i-1))
done done
@ -681,7 +681,7 @@ _makepkg(){
*) *)
i=$# i=$#
while [[ $words[i] != -* ]] && [[ $words[$i] != "makepkg" ]];do while [[ $words[i] != -* ]] && [[ $words[$i] != "makepkg" ]];do
i=$((i-1)); i=$((i-1))
done done
case $words[$i] in case $words[$i] in
-*) -*)

View file

@ -137,7 +137,7 @@ verify_file_signature() {
for ext in "" gz bz2 xz lrz lzo Z; do for ext in "" gz bz2 xz lrz lzo Z; do
if sourcefile="$(get_filepath "${file%.*}${ext:+.$ext}")"; then if sourcefile="$(get_filepath "${file%.*}${ext:+.$ext}")"; then
found=1 found=1
break; break
fi fi
done done
if (( ! found )); then if (( ! found )); then

View file

@ -51,7 +51,7 @@ is_array() {
# Canonicalize a directory path if it exists # Canonicalize a directory path if it exists
canonicalize_path() { canonicalize_path() {
local path="$1"; local path="$1"
if [[ -d $path ]]; then if [[ -d $path ]]; then
( (

View file

@ -500,13 +500,13 @@ run_package() {
} }
find_libdepends() { find_libdepends() {
local d sodepends; local d sodepends
sodepends=0; sodepends=0
for d in "${depends[@]}"; do for d in "${depends[@]}"; do
if [[ $d = *.so ]]; then if [[ $d = *.so ]]; then
sodepends=1; sodepends=1
break; break
fi fi
done done
@ -515,8 +515,8 @@ find_libdepends() {
return 0 return 0
fi fi
local libdeps filename soarch sofile soname soversion; local libdeps filename soarch sofile soname soversion
declare -A libdeps; declare -A libdeps
while read -r filename; do while read -r filename; do
# get architecture of the file; if soarch is empty it's not an ELF binary # get architecture of the file; if soarch is empty it's not an ELF binary
@ -1238,7 +1238,7 @@ OPT_LONG=('allsource' 'check' 'clean' 'cleanbuild' 'config:' 'force' 'geninteg'
OPT_LONG+=('asdeps' 'noconfirm' 'needed' 'noprogressbar') OPT_LONG+=('asdeps' 'noconfirm' 'needed' 'noprogressbar')
if ! parseopts "$OPT_SHORT" "${OPT_LONG[@]}" -- "$@"; then if ! parseopts "$OPT_SHORT" "${OPT_LONG[@]}" -- "$@"; then
exit $E_INVALID_OPTION; exit $E_INVALID_OPTION
fi fi
set -- "${OPTRET[@]}" set -- "${OPTRET[@]}"
unset OPT_SHORT OPT_LONG OPTRET unset OPT_SHORT OPT_LONG OPTRET

View file

@ -521,14 +521,14 @@ OPT_LONG=('add' 'config:' 'delete' 'edit-key' 'export' 'finger' 'gpgdir:'
'lsign-key' 'nocolor' 'populate' 'recv-keys' 'refresh-keys' 'updatedb' 'lsign-key' 'nocolor' 'populate' 'recv-keys' 'refresh-keys' 'updatedb'
'verify' 'version') 'verify' 'version')
if ! parseopts "$OPT_SHORT" "${OPT_LONG[@]}" -- "$@"; then if ! parseopts "$OPT_SHORT" "${OPT_LONG[@]}" -- "$@"; then
exit 1 # E_INVALID_OPTION; exit 1 # E_INVALID_OPTION
fi fi
set -- "${OPTRET[@]}" set -- "${OPTRET[@]}"
unset OPT_SHORT OPT_LONG OPTRET unset OPT_SHORT OPT_LONG OPTRET
if [[ $1 == "--" ]]; then if [[ $1 == "--" ]]; then
usage; usage
exit 0; exit 0
fi fi
while (( $# )); do while (( $# )); do

View file

@ -350,7 +350,7 @@ db_write_entry() {
if [[ -d $tmpdir/db/$pkgname-$pkgver ]]; then if [[ -d $tmpdir/db/$pkgname-$pkgver ]]; then
warning "$(gettext "An entry for '%s' already existed")" "$pkgname-$pkgver" warning "$(gettext "An entry for '%s' already existed")" "$pkgname-$pkgver"
if (( ONLYADDNEW )); then if (( ONLYADDNEW )); then
return 0; return 0
fi fi
else else
if (( DELTA || RMEXISTING )); then if (( DELTA || RMEXISTING )); then