Skip to content

Commit

Permalink
exit from script on host shell earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
intrand committed Jul 11, 2024
1 parent 6f56048 commit 720a434
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-local.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

if [ ! -f "/.dockerenv" ]; then
docker pull golang:latest && docker run -ti --rm -v "${PWD}":"${PWD}" --workdir "${PWD}" golang:latest
docker pull golang:latest && docker run -ti --rm -v "${PWD}":"${PWD}" --workdir "${PWD}" golang:latest;
exit;
fi;

apt-get update &&
Expand Down

0 comments on commit 720a434

Please sign in to comment.