diff contrib/packaging/debian/rules @ 46844:2fd5e0054dd9

deb: avoid use of [[ in 'rules' file It's not supported by posix shell, and apparently my build system uses that. Differential Revision: https://phab.mercurial-scm.org/D10292
author Kyle Lippincott <spectral@google.com>
date Tue, 30 Mar 2021 15:54:36 -0700
parents 90481550467c
children 8d7eaff92f9c
line wrap: on
line diff
--- a/contrib/packaging/debian/rules	Tue Mar 30 02:32:30 2021 +0200
+++ b/contrib/packaging/debian/rules	Tue Mar 30 15:54:36 2021 -0700
@@ -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; \