Added base.sh and refactored

This commit is contained in:
Kevin Veen-Birkenbach [aka. Frantz]
2019-10-01 08:50:17 +02:00
parent 89bb5b619d
commit 24e05b6c08
5 changed files with 12 additions and 5 deletions

View File

@@ -2,7 +2,8 @@
# 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=$(readlink -f "$(dirname "$(readlink -f "${0}")")/../data");
source "$(dirname "$(readlink -f "${0}")")/base.sh"
DATA_FOLDER=$ENCRYPTED
if [ -z "$(mount | grep $DATA_FOLDER)" ]
then
echo "The data folder $DATA_FOLDER is locked. You need to unlock it!"