display share URL with online mode
Deploy game to server / deploy (push) Successful in 7s

This commit is contained in:
adam committed 2025-02-13 23:37:03 +00:00
1 parent 00490f53c7
commit da696e5df2
1 file changed
+3
+3
View File
@@ -63,6 +63,7 @@ function main() {
if [[ $WIN == 5 ]]; then
save_result
echo -e "${CLEAR_DOWN}YOU WIN"
[[ "${ONLINE}" == 1 ]] && echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\""
exit 0
fi
done
@@ -75,6 +76,7 @@ function main() {
echo -en "${NEWLINE}${RESET}"
save_result
[[ "${ONLINE}" == 1 ]] && echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\""
exit 0
}
@@ -119,6 +121,7 @@ function set_options() {
;;
o)
ONLINE=1
declare -gr URL_BASE="https://www.adbraun.lol/wordle"
echo -en "${CLEAR_SCREEN}"