Skip to content

Commit 635d513

Browse files
authored
use /bin/bash for scripts (#115)
1 parent 2588bf3 commit 635d513

File tree

8 files changed

+10
-11
lines changed

8 files changed

+10
-11
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ FROM golang:1.16.3-alpine3.13 as codefresh-build
3030

3131
WORKDIR /go/src/github.com/codefresh-io/cli-v2
3232

33-
RUN apk -U add --no-cache git make
33+
RUN apk -U add --no-cache git make bash
3434

3535
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
3636
COPY --from=base /go/pkg/mod /go/pkg/mod

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.0.108
1+
VERSION=v0.0.109
22
OUT_DIR=dist
33
YEAR?=$(shell date +"%Y")
44

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cf version
2020
### Linux
2121
```bash
2222
# download and extract the binary
23-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.108/cf-linux-amd64.tar.gz | tar zx
23+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.109/cf-linux-amd64.tar.gz | tar zx
2424

2525
# move the binary to your $PATH
2626
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -32,7 +32,7 @@ cf version
3232
### Mac
3333
```bash
3434
# download and extract the binary
35-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.108/cf-darwin-amd64.tar.gz | tar zx
35+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.109/cf-darwin-amd64.tar.gz | tar zx
3636

3737
# move the binary to your $PATH
3838
mv ./cf-darwin-amd64 /usr/local/bin/cf

hack/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
if [[ ! -z "${GO_FLAGS}" ]]; then
44
echo Building \"${OUT_FILE}\" with flags: \"${GO_FLAGS}\" starting at: \"${MAIN}\"
@@ -14,4 +14,4 @@ go build -ldflags=" \
1414
-X 'github.com/codefresh-io/cli-v2/pkg/store.buildDate=${BUILD_DATE}' \
1515
-X 'github.com/codefresh-io/cli-v2/pkg/store.gitCommit=${GIT_COMMIT}' \
1616
-X 'github.com/codefresh-io/cli-v2/pkg/store.RuntimeDefURL=${RUNTIME_DEF_URL}'" \
17-
-v -o ${OUT_FILE} ${MAIN}
17+
-v -o ${OUT_FILE} ${MAIN}

hack/check_worktree.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
echo "checking worktree..."
44
res=$(git status -s)

hack/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22
if [[ -z "$GIT_REPO" ]]; then
33
echo "error: git repo not defined"
44
exit 1

hack/test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
set -e
44
echo "" > coverage.txt
@@ -10,4 +10,3 @@ for d in $(go list ./... | grep -v vendor); do
1010
rm profile.out
1111
fi
1212
done
13-

manifests/runtime.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
namespace: "{{ namespace }}"
66
spec:
77
defVersion: 1.0.0
8-
version: 0.0.108
8+
version: 0.0.109
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

0 commit comments

Comments
 (0)