From 5f0a5a57cec7afdde0944c806ccbd67bfdfa2759 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 9 Apr 2017 04:07:22 +0300 Subject: [PATCH] Fix [ -nt ]-test for /bin/sh Tests in sh and bash behave differently: test in sh reports false if the file doesn't exist, test in bash reports true if the file doesn't exist. --- make-files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make-files b/make-files index 31a7b65..5c736ea 100755 --- a/make-files +++ b/make-files @@ -5,7 +5,7 @@ PYTHONPATH=. PYTHONIOENCODING=koi8-r:replace export PYTHONPATH PYTHONIOENCODING -if [ phd_site.tmpl -nt phd_site.py ]; then +if [ \! -e phd_site.py -o phd_site.tmpl -nt phd_site.py ]; then cheetah compile --encoding=koi8-r --settings='encoding="koi8-r"' --nobackup phd_site.tmpl && compyle phd_site.py fi && -- 2.39.2