Change to the home directory

This should prevent errors when running from an inaccessible
directory
This commit is contained in:
Ben Peddell 2016-05-17 09:56:33 +10:00
parent c8f6cee90b
commit e05ec78ac8

View File

@ -126,6 +126,8 @@ if [ -f "${HOME}/.arkmanager.cfg" ]; then
source "${HOME}/.arkmanager.cfg"
fi
cd "$HOME"
lsof=lsof
if [ -x /usr/sbin/lsof ]; then
lsof=/usr/sbin/lsof