Skip to content

Commit

Permalink
fix: shell script indent size
Browse files Browse the repository at this point in the history
Signed-off-by: Hayato Mizushima <[email protected]>
  • Loading branch information
hayato-m126 committed Jan 5, 2025
1 parent ed3f13b commit 636edbd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ trim_trailing_whitespace = false

[*.py]
indent_size = 4

[*.sh]
indent_size = 4
22 changes: 11 additions & 11 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ set +o allexport
PLAYBOOK="ansible/ubuntu.yml"

if [[ $OSTYPE == 'darwin'* ]]; then
PLAYBOOK="ansible/mac.yml"
if ! (command -v brew >/dev/null 2>&1); then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
PLAYBOOK="ansible/mac.yml"
if ! (command -v brew >/dev/null 2>&1); then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
elif [[ $OSTYPE == 'linux'* ]]; then
if ! (command -v curl >/dev/null 2>&1); then
sudo apt -y update
sudo apt -y install curl
fi
if ! (command -v curl >/dev/null 2>&1); then
sudo apt -y update
sudo apt -y install curl
fi
else
echo "This OS is not supported"
exit 1
echo "This OS is not supported"
exit 1
fi

if ! (command -v uv >/dev/null 2>&1); then
Expand Down

0 comments on commit 636edbd

Please sign in to comment.