1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-14 15:47:17 +00:00
test-tutorial-framework/hack/update_oneline_install.sh
2018-03-27 15:49:07 +02:00

12 lines
329 B
Bash
Executable File

#!/usr/bin/env bash
if [ "$(uname)" == "Darwin" ]; then
readlink_cmd="greadlink"
sed_cmd="gsed"
else
readlink_cmd="readlink"
sed_cmd="sed"
fi
SCRIPT_DIR="$(dirname $($readlink_cmd -f $0))"
$sed_cmd -i "s/SHA=\w\+/SHA=$(sha256sum hack/bootstrap_tfw_dev.sh | cut -d ' ' -f1)/g" "${SCRIPT_DIR}/oneline_install.sh"