]> git.ozlabs.org Git - next-scripts/commitdiff
to_build_host: provide some protection against misrunning
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 4 Jul 2018 23:15:45 +0000 (09:15 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 4 Jul 2018 23:15:45 +0000 (09:15 +1000)
to_build_host

index fad8be3a4a43297b434815944eced7b64283b423..14afe0dabdc8d28edcfdd618f4b78c17fc226194 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/sh
 
+[ -e "SHA1s" ] && {
+       echo "Found SHA1s file ... exitting" 1>&2
+       exit 1
+}
+
 . "$(dirname $0)/common.sh"
 
 rsync -avHSXx --exclude next-history.git --exclude stats --exclude next/.git/gitk.cache --delete ~/kernels/next/. ${build_host}:kernels/next/.