diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-02-15 14:29:19 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2017-04-02 03:55:35 -0400 |
commit | 0f62bb7a8c7d92603adea86d510a00a5bb9c78ce (patch) | |
tree | d4e85ce66734eeadf90564efed2ec5e323cdc7ea /pacman-multilib-testing.conf | |
parent | f696af10af302afc8a50f2d084076371c043fe5d (diff) | |
download | devtools32-a40b85dc8b0e91c38f8277a01bd1d8317aad6f8d.tar.xz |
lib/common.sh: Make it safe to include multiple times.lukeshu/to-upstream/cleanup-20170402
This is similar to common C #ifdef guards.
I was tempted to wrap the entire thing in the if/fi, rather than use
'return' to bail early. However, that means it won't execute anything
until after it reaches 'fi'. And if `shopt -s extglob` isn't executed
before parsing, then it will syntax-error on the extended globs. One
solution would have been to move `shopt -s extglob` up above the
include-guard. But the committed solution is all-around simpler.
Diffstat (limited to 'pacman-multilib-testing.conf')
0 files changed, 0 insertions, 0 deletions