Skip to content

Commit

Permalink
Make scripts SC2086 compliant (#102)
Browse files Browse the repository at this point in the history
Co-authored-by: Pieter Noordhuis <[email protected]>
  • Loading branch information
TungPham-TomTom and pietern authored Jun 6, 2024
1 parent bf82b7a commit 01f04cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions setup_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi

# Pull latest version from VERSION file if not set.
if [ -z "${VERSION:-}" ]; then
VERSION=$(cat $(dirname $0)/VERSION)
VERSION=$(cat $(dirname "$0")/VERSION)
fi

FILE="databricks_cli_$VERSION"
Expand Down Expand Up @@ -52,4 +52,4 @@ unzip -q "${FILE}.zip" -d .bin
# Add databricks to path.
dir=$PWD/.bin
chmod +x "${dir}/databricks"
echo "$dir" >> $GITHUB_PATH
echo "$dir" >> "$GITHUB_PATH"
8 changes: 4 additions & 4 deletions setup_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ macOS)
;;
esac

gh run download $last_successful_run_id -n $artifact -D .bin
gh run download "$last_successful_run_id" -n "$artifact" -D .bin

dir="$PWD/.bin/$(cli_snapshot_directory)"

Expand All @@ -82,11 +82,11 @@ fi

if [ "$RUNNER_OS" == "Windows" ]; then
(
cd $dir
cd "$dir"
mv ./databricks.exe ./databricks
)
fi

# Add databricks to path.
chmod +x $dir/databricks
echo "$dir" >> $GITHUB_PATH
chmod +x "$dir/databricks"
echo "$dir" >> "$GITHUB_PATH"

0 comments on commit 01f04cf

Please sign in to comment.