mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-22 07:01:03 +01:00
Optimized messages
This commit is contained in:
parent
e7908d4359
commit
916f0db76e
@ -5,5 +5,9 @@
|
||||
#
|
||||
# shellcheck source=/dev/null # Deactivate SC1090
|
||||
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
|
||||
echo "Locking directory $DECRYPTED_PATH..."
|
||||
fusermount -u "$DECRYPTED_PATH" && echo "Data is now encrypted." && echo "Removing directory $DECRYPTED_PATH..." && rmdir "$DECRYPTED_PATH"
|
||||
info "Locking directory $DECRYPTED_PATH..." &&
|
||||
fusermount -u "$DECRYPTED_PATH" || error "Unmounting failed."
|
||||
info "Data is now encrypted."
|
||||
|
||||
info "Removing directory $DECRYPTED_PATH..." &&
|
||||
rmdir "$DECRYPTED_PATH" || error "Failed."
|
||||
|
@ -5,11 +5,12 @@
|
||||
#
|
||||
# shellcheck source=/dev/null # Deactivate SC1090
|
||||
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
|
||||
echo "Unlocking directory $DECRYPTED_PATH..."
|
||||
info "Unlocking directory $DECRYPTED_PATH..."
|
||||
if [ ! -d "$DECRYPTED_PATH" ]
|
||||
then
|
||||
echo "Creating directory $DECRYPTED_PATH..."
|
||||
mkdir "$DECRYPTED_PATH"
|
||||
info "Creating directory $DECRYPTED_PATH..." &&
|
||||
mkdir "$DECRYPTED_PATH" || error "Failed."
|
||||
fi
|
||||
echo "Encrypting directory $DECRYPTED_PATH to $DECRYPTED_PATH..."
|
||||
encfs "$ENCRYPTED_PATH" "$DECRYPTED_PATH" && echo "ATTENTION: DATA IS NOW DECRYPTED!"
|
||||
info "Encrypting directory $DECRYPTED_PATH to $DECRYPTED_PATH..." &&
|
||||
encfs "$ENCRYPTED_PATH" "$DECRYPTED_PATH" || error "Failed."
|
||||
echo "ATTENTION: DATA IS NOW DECRYPTED!"
|
||||
|
Loading…
Reference in New Issue
Block a user