Skip to content

Commit

Permalink
feat: upgrade bash binary to 5.1-patch4
Browse files Browse the repository at this point in the history
This also drops the binary compression as - while it was useful - it also may be contributing to 127 exit codes, at least in `plugn`.
  • Loading branch information
Jose Diaz-Gonzalez committed Dec 20, 2020
1 parent 357fd3d commit 79de8ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NAME=go-basher
OWNER=progrium
BASH_DIR=.bash
BASH_STATIC_VERSION=5.0
BASH_STATIC_VERSION=5.1-actions-1

test:
go test -v
Expand All @@ -16,17 +16,14 @@ bash:
# Don't run if you don't have to. Adds several megs to repo with every commit.
rm -rf $(BASH_DIR) && mkdir -p $(BASH_DIR)/linux $(BASH_DIR)/osx

curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-linux \
> $(BASH_DIR)/linux/bash && strip $(BASH_DIR)/linux/bash
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-ubuntu-latest \
> $(BASH_DIR)/linux/bash

curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-osx \
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-macos-latest \
> $(BASH_DIR)/osx/bash

chmod +x $(BASH_DIR)/*/bash

# if upx is present, compress bash binaries
if [ `command -v upx` ]; then upx --8mib-ram --best --ultra-brute $(BASH_DIR)/*/bash; fi

go-bindata -tags=linux -o=bash_linux.go -prefix=$(BASH_DIR)/linux -pkg=basher $(BASH_DIR)/linux
go-bindata -tags=darwin -o=bash_darwin.go -prefix=$(BASH_DIR)/osx -pkg=basher $(BASH_DIR)/osx

Expand Down
4 changes: 2 additions & 2 deletions bash_darwin.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bash_linux.go

Large diffs are not rendered by default.

0 comments on commit 79de8ba

Please sign in to comment.