mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
paccache: declare variables explicitly
Declare and initialize integer variables 'needsroot' and 'verbose'. Don't use the fact that (( undefined_variable )) evaluates to 0. Signed-off-by: lolilolicon <lolilolicon@gmail.com> Signed-off-by: Dave Reisner <dreisner@archlinux.org>
This commit is contained in:
parent
938fb2c878
commit
e0400fff96
@ -21,7 +21,7 @@
|
||||
shopt -s extglob
|
||||
|
||||
declare -a candidates=() cmdopts=() whitelist=() blacklist=()
|
||||
declare -i delete=0 dryrun=0 filecount=0 move=0 totalsaved=0
|
||||
declare -i delete=0 dryrun=0 filecount=0 move=0 needsroot=0 totalsaved=0 verbose=0
|
||||
declare cachedir=@localstatedir@/cache/pacman/pkg delim=$'\n' keep=3 movedir= scanarch=
|
||||
|
||||
msg() {
|
||||
|
Loading…
Reference in New Issue
Block a user