summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-04-02 04:09:56 -0400
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-04-05 22:14:19 +0200
commit189efd3bc0b4fe87aae088b6c46ebb8a172caf28 (patch)
treed4b1d81055c4442a24933e922850eace38f62ac4
parentcb35d74f8ce0e1ad489c59d608877e4d6b34ca85 (diff)
downloaddevtools-189efd3bc0b4fe87aae088b6c46ebb8a172caf28.tar.xz
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.
-rw-r--r--makechrootpkg.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 5329f76..31d57d3 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -15,7 +15,8 @@ m4_include(lib/archroot.sh)
shopt -s nullglob
-makepkg_args=(-s --noconfirm -L --holdver)
+default_makepkg_args=(-s --noconfirm -L --holdver)
+makepkg_args=("${default_makepkg_args[@]}")
repack=false
update_first=false
clean_first=false
@@ -54,7 +55,7 @@ usage() {
echo 'from makepkg.conf(5), if those variables are not part of the'
echo 'environment.'
echo ''
- echo "Default makepkg args: ${makepkg_args[*]}"
+ echo "Default makepkg args: ${default_makepkg_args[*]}"
echo ''
echo 'Flags:'
echo '-h This help'