Commit 94f9b99 1 parent 3313f67 commit 94f9b99 Copy full SHA for 94f9b99
File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- # Check if the script is running on Linux
4
- if [[ " $OSTYPE " == " linux-gnu" * ]]; then
3
+ if [ " $( uname) " == " Darwin" ]; then
4
+ echo " This script is designed for Linux and may not work properly on macOS."
5
+ else
5
6
# Get the IP address from the Docker container
6
7
docker_ip=$( docker run --rm alpine ip route | awk ' NR==1 {print $3}' )
7
8
@@ -20,11 +21,6 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
20
21
sudo iptables -A INPUT -p tcp --dport 9003 -j ACCEPT
21
22
echo " Port 9003 has been opened for xdebug."
22
23
fi
23
- elif [[ " $OSTYPE " == " darwin" * ]]; then
24
- echo " This script is designed for Linux and may not work properly on macOS."
25
- else
26
- echo " Unsupported operating system."
27
24
fi
28
25
29
26
echo " Tasks completed successfully"
30
-
You can’t perform that action at this time.
0 commit comments