[FCP] make sure the clang-hash uses relative paths

Summary: Need to use relative paths in order to make the hash consistent across machines

Reviewed By: ngorogiannis

Differential Revision: D23623726

fbshipit-source-id: 44f750658
master
Martin Trojer 4 years ago committed by Facebook GitHub Bot
parent 386f303b1d
commit 67f003db6a

@ -41,8 +41,10 @@ usage () {
}
clang_hash () {
HASH=$($SHASUM "${SCRIPT_DIR}/setup.sh" "${SCRIPT_DIR}/src/prepare_clang_src.sh" | $SHASUM)
pushd "$SCRIPT_DIR" > /dev/null
HASH=$($SHASUM setup.sh src/prepare_clang_src.sh | $SHASUM)
printf "%s" "$HASH" | cut -d ' ' -f 1
popd > /dev/null
}
check_installed () {

Loading…
Cancel
Save