Permalink
Browse files

Restore Dockerfile to previous state, either present or deleted. (Closes

: #59)
  • Loading branch information...
lamby committed Sep 19, 2018
1 parent 01d638a commit 5b56b89879a9580485b0aced516772592f5b45d4
Showing with 2 additions and 1 deletion.
  1. +2 −1 script.sh
View
@@ -432,8 +432,9 @@ Indent Dockerfile
Info "Building Docker image ${TAG}"
docker build --tag="${TAG}" .
Info "Removing Dockerfile"
Info "Restoring Dockerfile to previous state"
rm -f Dockerfile
git checkout -- Dockerfile || true
CIDFILE="$(mktemp --dry-run)"
ARGS="--cidfile=${CIDFILE}"

0 comments on commit 5b56b89

Please sign in to comment.