Files
5etools-mirror-2.github.io/.github/set-deployed-flag.sh
TheGiddyLimit 5ffd4acdb4 v1.198.4
2024-01-10 17:30:40 +00:00

14 lines
275 B
Bash

#!/bin/bash
set -e
if [[ $# -eq 0 ]]; then
echo "No arguments provided. Usage: set-deployed-flag.sh <version>"
exit 1
fi
version=$1
# Set the IS_DEPLOYED variable for production.
sed -i 's/IS_DEPLOYED\s*=\s*undefined/IS_DEPLOYED='"\"${version}\""'/g' js/utils.js