start by go to current dir

This commit is contained in:
Ste Vaidis 2022-12-24 18:26:57 +02:00
parent 3d66a74f20
commit 9e1a065f6e

View File

@ -1,16 +1,9 @@
#!/bin/bash #!/bin/bash
. ./backup.config SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR
#IFS=$'\n' . ./backup.config
#NOW=$(date +"%Y-%m-%d_%H:%M")
#LOG="/root/backup_$NOW.log"
#USB_DISK=""
#USB_PARTITION=""
#USB_MOUNT="/mnt/usb"
#LUKS_PASS_URL="192.168.1.199:9999/andthepasswordis"
#LUKS_PASS=""
#MAIL_RECIPIENT="ste.vaidis@gmail.com"
function log() { function log() {
echo -e "`date +'%d/%m/%Y %H:%M:%S'` | $1" echo -e "`date +'%d/%m/%Y %H:%M:%S'` | $1"