[Updated] D10292: deb: avoid use of [[ in 'rules' file

spectral (Kyle Lippincott) phabricator at mercurial-scm.org
Wed Mar 31 03:41:54 UTC 2021


Closed by commit rHG2fd5e0054dd9: deb: avoid use of [[ in 'rules' file (authored by spectral).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D10292?vs=26635&id=26636

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D10292/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D10292

AFFECTED FILES
  contrib/packaging/debian/rules

CHANGE DETAILS

diff --git a/contrib/packaging/debian/rules b/contrib/packaging/debian/rules
--- a/contrib/packaging/debian/rules
+++ b/contrib/packaging/debian/rules
@@ -96,7 +96,7 @@
 	cp contrib/bash_completion "$(CURDIR)"/debian/mercurial/usr/share/bash-completion/completions/hg
 	mkdir -p "$(CURDIR)"/debian/mercurial/usr/share/zsh/vendor-completions
 	cp contrib/zsh_completion "$(CURDIR)"/debian/mercurial/usr/share/zsh/vendor-completions/_hg
-	if [[ "$(DEB_HG_CHG_BY_DEFAULT)" -eq 1 ]]; then \
+	if [ "$(DEB_HG_CHG_BY_DEFAULT)" -eq 1 ]; then \
 		mkdir -p "$(CURDIR)"/debian/mercurial/usr/lib/mercurial; \
 		mv "$(CURDIR)"/debian/mercurial/usr/bin/hg "$(CURDIR)"/debian/mercurial/usr/lib/mercurial/hg; \
 		ln -s chg "$(CURDIR)"/debian/mercurial/usr/bin/hg; \



To: spectral, #hg-reviewers, martinvonz
Cc: martinvonz, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210331/b273d28d/attachment-0002.html>


More information about the Mercurial-patches mailing list