Use "or" instead of "if" to choose between alternatives

This commit is contained in:
Ryan C. Thompson 2011-10-05 14:55:39 -07:00
parent 6abbd8a600
commit 72ebbf1b22

View File

@ -34,9 +34,8 @@
(pdir (file-name-as-directory (concat el-get-root package)))
(git (or (executable-find "git")
(error "Unable to find `git'")))
(url (if (bound-and-true-p el-get-git-install-url)
el-get-git-install-url
"http://github.com/dimitri/el-get.git"))
(url (or (bound-and-true-p el-get-git-install-url)
"http://github.com/dimitri/el-get.git"))
(default-directory el-get-root)
(process-connection-type nil) ; pipe, no pty (--no-progress)
(el-get-default-process-sync t) ; force sync operations for installer