This commit is contained in:
1 parent
d496319361
commit
8327678209
1 file changed
+8
-4
@@ -63,8 +63,10 @@ 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 && "${DAILY_DONE}" != 1 ]] && echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\""
|
if [[ "${ONLINE}" == 1 && "${DAILY_DONE}" != 1 ]]; then
|
||||||
while read -r board_line; do echo "${board_line//[A-Z]/ }"; done < "${RESULT_FILE}"
|
echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\""
|
||||||
|
while read -r board_line; do echo "${board_line//[A-Z]/ }"; done < "${RESULT_FILE}"
|
||||||
|
fi
|
||||||
echo "Guess - $(( ROW+1 ))/6"
|
echo "Guess - $(( ROW+1 ))/6"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@@ -78,8 +80,10 @@ function main() {
|
|||||||
echo -en "${NEWLINE}${RESET}"
|
echo -en "${NEWLINE}${RESET}"
|
||||||
|
|
||||||
save_result
|
save_result
|
||||||
[[ "${ONLINE}" == 1 && "${DAILY_DONE}" != 1 ]] && echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\""
|
if [[ "${ONLINE}" == 1 && "${DAILY_DONE}" != 1 ]]; then
|
||||||
while read -r board_line; do echo "${board_line//[A-Z]/ }"; done < "${RESULT_FILE}"
|
echo "Share/view your game with -> curl \"${URL_BASE}/${RESULT_FILE}\""
|
||||||
|
while read -r board_line; do echo "${board_line//[A-Z]/ }"; done < "${RESULT_FILE}"
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user