Skip to content

Commit

Permalink
🐞 fix: small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
shurco committed Aug 11, 2023
1 parent 0838f2b commit f592255
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions scripts/tools
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ Darwin)
brew install goose golangci-lint yq sqlite3
;;
Linux)
mkdir -p ${ROOT_PATH}/.vscode/tmp
mkdir -p "${ROOT_PATH}/.vscode/tmp"
mkdir -p "${HOME}/.local/bin"

print_header "Install/Update sqlite3"
sudo apt-get install sqlite3 -y >/dev/null 2>&1
Expand All @@ -22,7 +23,7 @@ Linux)
GOLINTER_LATEST=$(get_latest_release "golangci/golangci-lint")
wget "https://github.com/golangci/golangci-lint/releases/download/${GOLINTER_LATEST}/golangci-lint-${GOLINTER_LATEST#*v}-linux-amd64.tar.gz" -4 -q -O ${ROOT_PATH}/.vscode/tmp/golangci-lint.tar.gz
tar --no-same-owner -xzf ${ROOT_PATH}/.vscode/tmp/golangci-lint.tar.gz -C ${ROOT_PATH}/.vscode/tmp
install "${ROOT_PATH}/.vscode/tmp/golangci-lint-${GOLINTER_LATEST#*v}-linux-amd64/golangci-lint" "$HOME/.local/bin"
install "${ROOT_PATH}/.vscode/tmp/golangci-lint-${GOLINTER_LATEST#*v}-linux-amd64/golangci-lint" "$HOME/.local/bin/golangci-lint"
print_answer "SUCCESS" green

print_header "Install/Update goose"
Expand All @@ -31,7 +32,7 @@ Linux)

print_header "Install/Update yq"
wget "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64" -4 -q -O ${ROOT_PATH}/.vscode/tmp/yq
install "${ROOT_PATH}/.vscode/tmp/yq" "$HOME/.local/bin"
install "${ROOT_PATH}/.vscode/tmp/yq" "$HOME/.local/bin/yq"
print_answer "SUCCESS" green

rm -rf ${ROOT_PATH}/.vscode/tmp
Expand Down
2 changes: 1 addition & 1 deletion scripts/web
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WEB=$1

if [[ $WEB == "admin" ]]; then
cd $ROOT_PATH/web/admin && tailwindcss -o ./public/assets/css/style.css --watch --minify
elif [[ $MIGRATION == "site" ]]; then
elif [[ $WEB == "site" ]]; then
cd $ROOT_PATH/web/site && tailwindcss -o ./public/assets/css/style.css --watch --minify
else
print_header "Tailwind CLI"
Expand Down

0 comments on commit f592255

Please sign in to comment.