Skip to content

Commit 497634b

Browse files
authored
Update generate-index.sh (#110)
1 parent e3d1e06 commit 497634b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

samples/generate-index.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,7 @@
55
echo ">>>Running generate-index.sh"
66

77
# Define path based on platform.
8-
if [[ "$OSTYPE" == "darwin"* ]]; then
9-
echo "Hello, Mac!"
10-
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
11-
echo "Project path: ${SCRIPT_DIR}"
12-
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
13-
echo "Hello, gLinux!"
14-
SCRIPT_DIR="$(dirname "$0")"
15-
echo "Project path: ${SCRIPT_DIR}"
16-
fi
17-
8+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
189
PROJECT_ROOT=$(dirname "$SCRIPT_DIR") # Get the parent directory (js-api-samples)
1910
DIST_DIR="$PROJECT_ROOT/dist"
2011

0 commit comments

Comments
 (0)