summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmanage-baserock4
1 files changed, 4 insertions, 0 deletions
diff --git a/manage-baserock b/manage-baserock
index 0ac0aee..b3a8f52 100755
--- a/manage-baserock
+++ b/manage-baserock
@@ -73,6 +73,10 @@ case "${ACTION}" in
trap cleanup 0
if test "x${URL}" = "x${URL##http://}" -a "x${URL}" = "x${URL##https://}"; then
+ if ! test -e ${URL}; then
+ echo "${URL} is neither a HTTP/HTTPS url nor a path to a local file";
+ exit 1;
+ fi
if ! ln -s "$(readlink -e "${URL}")" "${TEMP_BASE}/tarball"; then
echo "Sorry, could not link ${URL} into place";
exit 1;