makechrootpkg: usage(): Display the actual default makepkg flags.

It was displaing the value of the `makepkg_args` variable, which may
have already been changed by the argument parsing by the time it gets
to `-h`.  Now there is a separate `default_makepkg_args` variable.
This commit is contained in:
Luke Shumaker 2017-04-02 04:09:56 -04:00 committed by Jan Alexander Steffens (heftig)
parent cb35d74f8c
commit 189efd3bc0
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
1 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,8 @@ m4_include(lib/archroot.sh)
shopt -s nullglob shopt -s nullglob
makepkg_args=(-s --noconfirm -L --holdver) default_makepkg_args=(-s --noconfirm -L --holdver)
makepkg_args=("${default_makepkg_args[@]}")
repack=false repack=false
update_first=false update_first=false
clean_first=false clean_first=false
@ -54,7 +55,7 @@ usage() {
echo 'from makepkg.conf(5), if those variables are not part of the' echo 'from makepkg.conf(5), if those variables are not part of the'
echo 'environment.' echo 'environment.'
echo '' echo ''
echo "Default makepkg args: ${makepkg_args[*]}" echo "Default makepkg args: ${default_makepkg_args[*]}"
echo '' echo ''
echo 'Flags:' echo 'Flags:'
echo '-h This help' echo '-h This help'