Created
April 2, 2019 19:44
-
-
Save christianromney/f0d099c0650780d07c238a9f00ae5264 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o pipefail | |
compute_hash() { | |
find "$1" -type f -exec md5sum {} \; | sort -k 2 | md5sum | |
} | |
PROJECT_ROOT=$(git rev-parse --show-toplevel) | |
echo "root: ${PROJECT_ROOT}" | |
CSS_HASH=$(compute_hash "${PROJECT_ROOT}/scss") | |
echo "css: ${CSS_HASH}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment