Skip to content

Commit e33dfad

Browse files
authored
Update generate-index.sh (#114)
1 parent c752460 commit e33dfad

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

samples/generate-index.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44

55
echo ">>>Running generate-index.sh"
66

7-
# Set up paths.
8-
SCRIPT_DIR="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)"
9-
PROJECT_ROOT=$(dirname "$SCRIPT_DIR")
10-
DIST_DIR="$PROJECT_ROOT/dist"
7+
# /Users/[USERNAME]/git/js-api-samples/samples
8+
9+
PROJECT_ROOT="$(pwd)"
10+
SCRIPT_DIR="${PROJECT_ROOT}/samples"
11+
DIST_DIR="${PROJECT_ROOT}/dist"
1112

1213
echo "SCRIPT_DIR: ${SCRIPT_DIR}"
1314
echo "PROJECT_ROOT: ${PROJECT_ROOT}"
15+
echo "pwd: $(pwd)"
1416

1517
# Create the output file.
1618
OUTPUT_FILE="index.html"

0 commit comments

Comments
 (0)