Translated relative to absolute path

This commit is contained in:
Kevin Veen-Birkenbach 2019-09-30 16:52:06 +02:00
parent 092be2fee0
commit affcc26512

View File

@ -2,7 +2,7 @@
# Imports data from the system
# @author Kevin Veen-Birkenbach [aka. Frantz]
# @param $1 If the first parameter is "reverse" the data will be exported to the system
DATA_FOLDER="$(dirname "$(readlink -f "${0}")")/../data";
DATA_FOLDER=$(readlink -f "$(dirname "$(readlink -f "${0}")")/../data");
declare -a BACKUP_LIST=("$HOME/.ssh/" "$HOME/.gitconfig");
for system_item_path in "${BACKUP_LIST[@]}";
do