Skip to content

Commit

Permalink
Make upgrade a no-op if .no-upgrade exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
rejeep committed Feb 6, 2014
1 parent 7e35e14 commit 07bc3ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cask-cli.el
Expand Up @@ -140,8 +140,7 @@ already is installed, it will not be installed again."
This command requires that Cask is installed using Git and that
Git is available in `exec-path'."
(if (f-exists? (f-expand ".no-upgrade" cask-directory))
(error "Refusing to upgrade because .no-upgrade file exist")
(unless (f-exists? (f-expand ".no-upgrade" cask-directory))
(unwind-protect
(progn
(epl-change-package-dir cask-bootstrap-dir)
Expand Down

0 comments on commit 07bc3ec

Please sign in to comment.