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 if [[ $WIN == 5 ]]; then
save_result save_result
echo -e "${CLEAR_DOWN}YOU WIN" echo -e "${CLEAR_DOWN}YOU WIN"
[[ "${ONLINE}" == 1 ]] && echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\""
exit 0 exit 0
fi fi
done done
@@ -75,6 +76,7 @@ function main() {
echo -en "${NEWLINE}${RESET}" echo -en "${NEWLINE}${RESET}"
save_result save_result
[[ "${ONLINE}" == 1 ]] && echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\""
exit 0 exit 0
} }
@@ -119,6 +121,7 @@ function set_options() {
;; ;;
o) o)
ONLINE=1 ONLINE=1
declare -gr URL_BASE="https://www.adbraun.lol/wordle"
echo -en "${CLEAR_SCREEN}" echo -en "${CLEAR_SCREEN}"