Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
frantjc committed Oct 30, 2022
1 parent 0f1d093 commit 66fe1ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dockerfile-ADDendum

Small script to pair with the Dockerfile `ADD` directive to make an idempotent action regardless of if the `<src>` of the `ADD` is a local tar archive or a tar archive from a remove URL.
Small script to pair with the Dockerfile `ADD` directive to make an idempotent action regardless of if the `<src>` of the `ADD` is a local tar archive or a tar archive from a remote URL.

## use case

Expand Down
6 changes: 3 additions & 3 deletions pkg/command/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ func NewRoot() *cobra.Command {

if un {
if exe, err := os.Executable(); err == nil {
if exe, err = filepath.EvalSymlinks(exe); err == nil {
return os.Remove(exe)
if exesym, err := filepath.EvalSymlinks(exe); err == nil {
return os.Remove(exesym)
}

return err
return os.Remove(exe)
}

return err
Expand Down

0 comments on commit 66fe1ce

Please sign in to comment.