Skip to content

Commit 9f45218

Browse files
authored
Merge pull request #51 from cipherstash/rh/just-dirchange
Adds some cd-ing for safety in the justfile bash scripts
2 parents 54c7c6e + 3279afa commit 9f45218

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set positional-arguments
55
test:
66
#!/usr/bin/env bash
77
set -euxo pipefail
8+
cd "{{justfile_directory()}}"
89

910
just build
1011
just reset
@@ -24,6 +25,7 @@ test:
2425
build:
2526
#!/usr/bin/env bash
2627
set -euxo pipefail
28+
cd "{{justfile_directory()}}"
2729

2830
mkdir -p release
2931

@@ -64,6 +66,7 @@ build:
6466
reset:
6567
#!/usr/bin/env bash
6668
set -euxo pipefail
69+
cd "{{justfile_directory()}}"
6770

6871
PGPASSWORD=$CS_DATABASE__PASSWORD dropdb --force --if-exists --username ${CS_DATABASE__USERNAME:-$USER} --port $CS_DATABASE__PORT $CS_DATABASE__NAME
6972
PGPASSWORD=$CS_DATABASE__PASSWORD createdb --username ${CS_DATABASE__USERNAME:-$USER} --port $CS_DATABASE__PORT $CS_DATABASE__NAME

0 commit comments

Comments
 (0)