1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-14 15:57:17 +00:00
test-tutorial-framework/hack/update_oneline_install.sh
2018-04-06 10:09:58 +02:00

12 lines
314 B
Bash
Executable File

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