Skip to content

Commit 8e1b100

Browse files
committed
Run everything relative to the script directory
1 parent fdd3848 commit 8e1b100

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

setup_project.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4+
# Get the directory where this script is located
5+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6+
cd "$SCRIPT_DIR"
7+
48
if [[ $# -ne 1 ]]; then
59
echo "Usage: $0 <app-name>"
610
exit 1

0 commit comments

Comments
 (0)