Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sh only #25

Merged
merged 4 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 #4.2.1
- id: ls
run: |
echo files="$(ls scripts/ | sed 's/.sh//' | xargs jq -c -n '$ARGS.positional' --args)" >> "$GITHUB_OUTPUT"
echo files="$(ls scripts/ | sed 's/\.sh//' | xargs jq -c -n '$ARGS.positional' --args)" >> "$GITHUB_OUTPUT"

test:
needs: list
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -o errexit
wget -q -O - https://get.docker.com/ | sh
sudo groupadd docker
sudo usermod -aG docker $USER
sudo usermod -aG docker "$USER"
4 changes: 2 additions & 2 deletions scripts/githooks.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
set -o errexit
DIR='~/.git-templates'
mkdir -p "${DIR}/hooks"
DIR="$HOME/.git-templates"
mkdir -p "$DIR/hooks"
git config --global init.templatedir "${DIR}"
echo "Copy all hooks for here"
chmod a+x ~/.git-templates/hooks/*
4 changes: 2 additions & 2 deletions scripts/kind.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#set -o errexit
[ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64
[ $(uname -m) = aarch64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-arm64
[ "$(uname -m)" = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64
[ "$(uname -m)" = aarch64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-arm64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
Loading