We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3d1e06 commit 8a28810Copy full SHA for 8a28810
samples/generate-index.sh
@@ -5,16 +5,7 @@
5
echo ">>>Running generate-index.sh"
6
7
# 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
16
-fi
17
-
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
18
PROJECT_ROOT=$(dirname "$SCRIPT_DIR") # Get the parent directory (js-api-samples)
19
DIST_DIR="$PROJECT_ROOT/dist"
20
0 commit comments