diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-04-05 19:06:10 -0400 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2017-04-17 03:11:34 +0200 |
commit | 49088b0860276c664933c2b3e36a2fef714b7a07 (patch) | |
tree | a0d2ec94d0e11a35cdde010650e6fa36bdd4e0fc /lib/archroot.sh | |
parent | a1f8ac9c70494009554c08c1036351cb2b374828 (diff) | |
download | devtools-49088b0860276c664933c2b3e36a2fef714b7a07.tar.xz |
makechrootpkg: Avoid having code floating around outside of a function.
This means wrapping variable initialization in init_variables(), and the
main program routine in main().
I did NOT put `shopt -s nullglob` in to a function.
It make make sense to move init_variables() down into the main()
function, instead of having it as a separate function up top (if this
done, then the `-g` flag passed to `declare` in init_variables() can
be dropped). However, in interest of keeping the `diff -w` small, and
merges/rebases simpler, this isn't done here.
Diffstat (limited to 'lib/archroot.sh')
0 files changed, 0 insertions, 0 deletions