Friday, June 8, 2018

Bash | Print confirmation before exit

command 1
command 2
.
.
.

[ $? -eq '0' ] && echo "Job done!"
exit $?

No comments:

Post a Comment

Any comments?

my-alpine and docker-compose.yml

 ``` version: '1' services:     man:       build: .       image: my-alpine:latest   ```  Dockerfile: ``` FROM alpine:latest ENV PYTH...