Skip to content

Commit

Permalink
Merge pull request #25 from Ant0wan/sh-only
Browse files Browse the repository at this point in the history
Sh only
  • Loading branch information
Ant0wan authored Oct 23, 2024
2 parents 1d50eb7 + 8fca20b commit 195faf2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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

0 comments on commit 195faf2

Please sign in to comment.