autosource: Made variables local so they don't leak
This commit is contained in:
parent
bca3d0fbea
commit
9910654818
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
function autosource {
|
function autosource {
|
||||||
|
local bash_function_dirs bash_function_dir
|
||||||
|
|
||||||
# Test if 1 argument was given
|
# Test if 1 argument was given
|
||||||
if (( $# == 0 )); then
|
if (( $# == 0 )); then
|
||||||
echo "autosource: basename of a file in BASH_FUNC_PATH required"
|
echo "autosource: basename of a file in BASH_FUNC_PATH required"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue