Revision 8883
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
18 | 18 |
# this is needed because aliases defined inside an if statement are not |
19 | 19 |
# available inside that if statement |
20 | 20 |
|
21 |
unalias () { builtin unalias "$@" 2>&- || true; } # no error if undefined |
|
22 |
|
|
21 | 23 |
if self_not_included "${BASH_SOURCE[0]}"; then |
22 | 24 |
|
23 | 25 |
shopt -s expand_aliases |
Also available in: Unified diff
lib/util.sh: added unalias () override, which doesn't produce an error if the alias is undefined