commit:     9eadf3d5bcaf3cbae34e63497a8ccbae020b6c3b
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 25 23:24:18 2016 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Apr 25 23:27:43 2016 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=9eadf3d5

cloud-prep: ensure migrate-pax is executable.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 releases/weekly/scripts/cloud-prep.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/releases/weekly/scripts/cloud-prep.sh 
b/releases/weekly/scripts/cloud-prep.sh
index 86f3641..20f3c5a 100644
--- a/releases/weekly/scripts/cloud-prep.sh
+++ b/releases/weekly/scripts/cloud-prep.sh
@@ -76,7 +76,7 @@ for i in $(find /var/log -type f); do truncate -s 0 $i; done
 find /usr/share/man/ -mindepth 1  -maxdepth 1 -path "/usr/share/man/man*" 
-prune -o -exec rm -rf {} \;
 
 # fine if this fails, aka non-hardened
-if [[ -a /usr/sbin/migrate-pax ]]; then
+if [[ -x /usr/sbin/migrate-pax ]]; then
   echo 'migraging pax'
   /usr/sbin/migrate-pax -m
 fi

Reply via email to