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)
_pacman_pkg Qq;;
F)
_arch_incomp 'l list' && _pacman_pkg Slq;
_arch_incomp 'l list' && _pacman_pkg Slq
;;
Q)
{ _arch_incomp 'g groups' && _pacman_pkg Qg sort; } ||

View file

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

View file

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

View file

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

View file

@ -500,13 +500,13 @@ run_package() {
}
find_libdepends() {
local d sodepends;
local d sodepends
sodepends=0;
sodepends=0
for d in "${depends[@]}"; do
if [[ $d = *.so ]]; then
sodepends=1;
break;
sodepends=1
break
fi
done
@ -515,8 +515,8 @@ find_libdepends() {
return 0
fi
local libdeps filename soarch sofile soname soversion;
declare -A libdeps;
local libdeps filename soarch sofile soname soversion
declare -A libdeps
while read -r filename; do
# 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')
if ! parseopts "$OPT_SHORT" "${OPT_LONG[@]}" -- "$@"; then
exit $E_INVALID_OPTION;
exit $E_INVALID_OPTION
fi
set -- "${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'
'verify' 'version')
if ! parseopts "$OPT_SHORT" "${OPT_LONG[@]}" -- "$@"; then
exit 1 # E_INVALID_OPTION;
exit 1 # E_INVALID_OPTION
fi
set -- "${OPTRET[@]}"
unset OPT_SHORT OPT_LONG OPTRET
if [[ $1 == "--" ]]; then
usage;
exit 0;
usage
exit 0
fi
while (( $# )); do

View file

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