diff options
author | EuAndreh <eu@euandre.org> | 2018-03-23 22:21:03 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-03-23 22:21:03 -0300 |
commit | 9357435d31ba57e254ca33bd8bacf57490057147 (patch) | |
tree | 51ddda00166ce8aa9b1eff1a8afbdf4c5c33e860 /bash | |
parent | Add h2 ip script (diff) | |
download | dotfiles-9357435d31ba57e254ca33bd8bacf57490057147.tar.gz dotfiles-9357435d31ba57e254ca33bd8bacf57490057147.tar.xz |
Add test for zero-bytes encrypted file
Diffstat (limited to 'bash')
-rw-r--r-- | bash/init.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bash/init.sh b/bash/init.sh index 2239015..1cb538f 100644 --- a/bash/init.sh +++ b/bash/init.sh @@ -5,3 +5,18 @@ pushd ~/ > /dev/null mr checkout > /dev/null popd > /dev/null + + +# Tests + +pushd $DOTFILES > /dev/null + +sizes=$(git diff-files --ignore-submodules | awk '{print $6}' | xargs du | awk '{print $1}') +for size in $sizes; do + if [[ $size = 1 ]]; then + # https://github.com/AGWA/git-crypt/issues/53 + echo "dotfiles contains encrypted file with 0 bytes" + fi +done + +popd > /dev/null |