add lib routene to import tool
This commit is contained in:
parent
34f0e17859
commit
73bbce159d
@ -35,6 +35,18 @@
|
||||
dbhost=$(grep -v '#' $globalconf | grep ^dbhost= | sed "s|^dbhost=||g" | tr -d '"')
|
||||
dbuser=$(grep -v '#' $globalconf | grep ^dbuser= | sed "s|^dbuser=||g" | tr -d '"')
|
||||
dbpwd=$(grep -v '#' $globalconf | grep ^dbpwd= | sed "s|^dbpwd=||g" | tr -d '"')
|
||||
|
||||
#load functions from LIB
|
||||
if [ -f "$(readlink -f "$(dirname $0)/bash-lib")" ]; then
|
||||
source "$(readlink -f "$(dirname $0)/bash-lib")"
|
||||
[ $DEBUG == $TRUE ] && echo "LIB VERSION: $LIBVER"
|
||||
elif [ -f "<LIBDIR>/bash-lib" ]; then #<LIBDIR>
|
||||
source "<LIBDIR>/bash-lib"
|
||||
[ $DEBUG == $TRUE ] && echo "LIB VERSION: $LIBVER"
|
||||
else
|
||||
echo "ERROR: Global Lib not found"
|
||||
exit 255
|
||||
fi
|
||||
}
|
||||
|
||||
function help() {
|
||||
|
Loading…
Reference in New Issue
Block a user