fixed import by giving up and using source

This commit is contained in:
James Tomasino 2018-01-20 03:17:09 -05:00
parent 7fe062ff0d
commit b4a478de6d
1 changed files with 3 additions and 11 deletions

14
burrow
View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
shopt -s extglob
version="v0.1.0"
configfiles="$HOME/.config/burrow/config $HOME/.config/burrow $HOME/.burrow"
editor=${EDITOR:-vi}
location_gopher="$HOME/gopher"
@ -195,17 +196,8 @@ function main() {
do
if [[ -f $configfile ]]
then
while IFS='= ' read lhs rhs
do
if [[ $lhs != *( )#* ]]
then
case $lhs in
"location_gopher"|"location_recipebox"|"location_phlog"|"git_commit"|"git_push"|"custom_editor")
declare $lhs=$rhs
;;
esac
fi
done < "$configfile"
source "$configfile"
echo "$configfile"
fi
done