aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/init.sh15
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