Skip to content

Commit abdbca7

Browse files
committed
Add prompts to exit in add_route.sh for better WinOS user experience
1 parent b864856 commit abdbca7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

add_route.sh

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ if [[ "${OS}" == "Linux" ]]; then
3737
echo "To add the route, open an Administrator Shell in Windows and run:"
3838
echo " route -p add ${TARGET_IP} mask ${NETMASK} ${PW_IP}"
3939
echo ""
40+
read -p "Press Enter to exit..."
4041
exit 1
4142
else
4243
echo "Native Linux detected"
@@ -108,6 +109,7 @@ elif [[ "${OS}" =~ MINGW* || "${OS}" =~ CYGWIN* ]]; then
108109
echo "Route added successfully."
109110
else
110111
echo "Failed to add the route. Please ensure you are running as Administrator."
112+
read -p "Press Enter to exit..."
111113
exit 1
112114
fi
113115
echo ""

0 commit comments

Comments
 (0)