Skip to content
Snippets Groups Projects
Unverified Commit e13bffab authored by Andreas Horn's avatar Andreas Horn
Browse files

improves log output

parent 8deeb143
No related branches found
No related tags found
No related merge requests found
......@@ -75,11 +75,12 @@ for file in $files; do
fi
if ansible-vault encrypt ${file} --vault-password-file ./.git/hooks/getPassword.sh > /dev/null 2>&1; then
echo -ne "${green} ${clear}"
echo -ne "${green}${clear}"
# only add the encrypted file if it was already staged
if echo "$stagedFiles" | grep -Fxq "$file"; then
git add $file
echo -ne "${green} (+)${clear}"
fi
else
echo -ne "${red}🮽 ${clear}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment