diff --git a/packt.sh b/packt.sh index dce2c7a..def9d2a 100755 --- a/packt.sh +++ b/packt.sh @@ -2,7 +2,9 @@ # Packt daily free e-book claim & download -source "packt.cfg" +CONFIG_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +source "$CONFIG_DIR/packt.cfg" function log { echo "$(date '+%Y-%m-%d %H:%M:%S ') $1" >> "$log"