Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6562)

Unified Diff: bash/release.sh

Issue 1265633005: Fix bug in how Debian packages are built (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bash/release.sh
diff --git a/bash/release.sh b/bash/release.sh
index 65101906eedb529a5c1472d228996c047b63f01f..4da80e803601ef625db95bd6824f60403465014d 100644
--- a/bash/release.sh
+++ b/bash/release.sh
@@ -76,7 +76,7 @@ cat <<-EOF > ${ROOT}/DEBIAN/control
EOF
cat <<-EOF > ${ROOT}/DEBIAN/postinst
-#!/bin/sh
+#!/bin/bash
INIT_SCRIPT="${INIT_SCRIPT}"
set -e
if [ -e /bin/systemctl ]
@@ -84,7 +84,7 @@ then
/bin/systemctl daemon-reload
/bin/systemctl enable ${SYSTEMD}
/bin/systemctl restart ${SYSTEMD}
-elif [ -z \$INIT_SCRIPT ]
+elif [ ! -z "\$INIT_SCRIPT" ]
then
update-rc.d \$INIT_SCRIPT enable
service $INIT_SCRIPT start
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698