autosource: Made variables local so they don't leak

This commit is contained in:
Gregor Bückendorf 2019-05-18 17:20:23 +02:00
parent bca3d0fbea
commit 9910654818

View file

@ -1,6 +1,8 @@
#!/usr/bin/env bash
function autosource {
local bash_function_dirs bash_function_dir
# Test if 1 argument was given
if (( $# == 0 )); then
echo "autosource: basename of a file in BASH_FUNC_PATH required"