Commit ed0a44a6 authored by Janek Bevendorff's avatar Janek Bevendorff

Fix messages in commit function

parent 4575b9e8
......@@ -80,11 +80,11 @@ pull_repository() {
# Usage: commit_changes BASE_DIR
commit_changes() {
logInfo "Committing changes to Git..."
if ! (cd "$1" && git add -A && git commit -m "-"); then
if (cd "$1" && git add -A && git commit -m "-"); then
logInfo "Changes committed. Please push the repository now (git push)."
else
logError "Committing changes failed!"
fi
logInfo "Changes committed. Please push the repository now (git push)."
}
# Usage: mount_cryfs BASE_DIR MOUNT_DIR
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment