Make scripts work in path that contains spaces (#4986)

This commit is contained in:
dullbananas 2024-08-22 08:33:00 -07:00 committed by GitHub
parent bd1b7aa6ef
commit 101476df87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View file

@ -6,7 +6,7 @@ set -e
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
cd $CWD/../
cd "$CWD/../"
source scripts/start_dev_db.sh

View file

@ -5,7 +5,7 @@ set -e
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
cd $CWD/../
cd "$CWD/../"
source scripts/start_dev_db.sh

View file

@ -3,7 +3,7 @@ set -e
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
cd $CWD/../
cd "$CWD/../"
# Format rust files
cargo +nightly fmt

View file

@ -8,7 +8,7 @@ third_semver=$(echo $new_tag | cut -d "." -f 3)
# Goto the upper route
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
cd $CWD/../
cd "$CWD/../"
# The docker installs should only update for non release-candidates
# IE, when the third semver is a number, not '2-rc'

View file

@ -5,7 +5,7 @@ set -e
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
cd $CWD/../
cd "$CWD/../"
# Copy the files to a temp dir
TMP_DIR=$(mktemp -d)

View file

@ -3,7 +3,7 @@ set -e
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
cd $CWD/../
cd "$CWD/../"
PACKAGE="$1"
echo "$PACKAGE"

View file

@ -3,7 +3,7 @@ set -e
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
cd $CWD/../
cd "$CWD/../"
PACKAGE="$1"
TEST="$2"