From: Stephen Rothwell Date: Wed, 4 Jul 2018 23:15:45 +0000 (+1000) Subject: to_build_host: provide some protection against misrunning X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=334c72c97ceb611cb7bdef02352e714a27ebb001;p=next-scripts to_build_host: provide some protection against misrunning --- diff --git a/to_build_host b/to_build_host index fad8be3..14afe0d 100755 --- a/to_build_host +++ b/to_build_host @@ -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/.