Skip to content

Instantly share code, notes, and snippets.

@christianromney
Created April 2, 2019 19:44
Show Gist options
  • Save christianromney/f0d099c0650780d07c238a9f00ae5264 to your computer and use it in GitHub Desktop.
Save christianromney/f0d099c0650780d07c238a9f00ae5264 to your computer and use it in GitHub Desktop.
#!/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