diff deploy/linux/fix-lintian-bits.sh @ 2008:55d9bbf1fe45 zoom

Merge from default branch
author Chris Cannam
date Mon, 17 Sep 2018 14:05:41 +0100
parents 9b59deb4a854
children
line wrap: on
line diff
--- a/deploy/linux/fix-lintian-bits.sh	Mon Sep 17 13:53:25 2018 +0100
+++ b/deploy/linux/fix-lintian-bits.sh	Mon Sep 17 14:05:41 2018 +0100
@@ -4,6 +4,8 @@
 
 [ -d "$dir" ] || exit 1
 
+set -eu
+
 strip "$dir"/usr/bin/*
 
 sz=`du -sx --exclude DEBIAN "$dir" | awk '{ print $1; }'`
@@ -11,6 +13,6 @@
 
 find "$dir" -name \*~ -exec rm \{\} \;
 
-sudo chown -R root.root "$dir"/*
+chown -R root.root "$dir"/*
 
-sudo chmod -R g-w "$dir"/*
+chmod -R g-w "$dir"/*