Skip to content

Commit

Permalink
Cleanup prelude from bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
josegomezr committed Dec 11, 2023
1 parent 63c739b commit 1cdcc5b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions tools/generate-docs
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
#!/bin/bash -e

# PRELUDE: FIND THE REAL PATH OF THIS FILE
pushd . > '/dev/null';
SCRIPT_PATH="${BASH_SOURCE[0]:-$0}";

while [ -h "$SCRIPT_PATH" ];
do
cd "$( dirname -- "$SCRIPT_PATH"; )";
SCRIPT_PATH="$( readlink -f -- "$SCRIPT_PATH"; )";
done

cd "$( dirname -- "$SCRIPT_PATH"; )" > '/dev/null';
SCRIPT_PATH="$( pwd; )";
popd > '/dev/null';
# END PRELUDE
# This script must be executed on the project's root.

# Navigate to the docs directory
cd ./docs/
Expand Down

0 comments on commit 1cdcc5b

Please sign in to comment.