mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-10 01:51:03 +01:00
Added creation of decrypted folder just if the folder doesn't exist
This commit is contained in:
parent
b9b315673f
commit
8ec28266b8
@ -6,7 +6,10 @@
|
|||||||
# shellcheck source=/dev/null # Deactivate SC1090
|
# shellcheck source=/dev/null # Deactivate SC1090
|
||||||
source "$(dirname "$(readlink -f "${0}")")/base.sh"
|
source "$(dirname "$(readlink -f "${0}")")/base.sh"
|
||||||
echo "Unlocking directory $DECRYPTED_PATH..."
|
echo "Unlocking directory $DECRYPTED_PATH..."
|
||||||
echo "Creating directory $DECRYPTED_PATH..."
|
if [ ! -d "$DECRYPTED_PATH" ]
|
||||||
mkdir "$DECRYPTED_PATH"
|
then
|
||||||
|
echo "Creating directory $DECRYPTED_PATH..."
|
||||||
|
mkdir "$DECRYPTED_PATH"
|
||||||
|
fi
|
||||||
echo "Encrypting directory $DECRYPTED_PATH to $DECRYPTED_PATH..."
|
echo "Encrypting directory $DECRYPTED_PATH to $DECRYPTED_PATH..."
|
||||||
encfs "$ENCRYPTED_PATH" "$DECRYPTED_PATH" && echo "ATTENTION: DATA IS NOW DECRYPTED!"
|
encfs "$ENCRYPTED_PATH" "$DECRYPTED_PATH" && echo "ATTENTION: DATA IS NOW DECRYPTED!"
|
||||||
|
Loading…
Reference in New Issue
Block a user