aboutsummaryrefslogtreecommitdiff
path: root/sbodl
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-05-13 05:46:21 -0400
committerB. Watson <urchlay@slackware.uk>2023-05-13 05:46:21 -0400
commit94beea1d7eb82ac125eccd2da9e5772ddd73fd9a (patch)
treed6f7f27aab1da6d1405654203047b78f19f59ad2 /sbodl
parenta7d41216611852b969e30b30c3fe6cd5b46602cf (diff)
downloadsbo-maintainer-tools-94beea1d7eb82ac125eccd2da9e5772ddd73fd9a.tar.gz
sbodl: suggest -a option if download fails.
Diffstat (limited to 'sbodl')
-rwxr-xr-xsbodl4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbodl b/sbodl
index a6cb8fc..2db3409 100755
--- a/sbodl
+++ b/sbodl
@@ -135,7 +135,7 @@ for dl in $DL; do
elif [ "$FORCEDL" != "yes" ] && [ -e "$CACHEDIR/$FILE" ]; then
ln -s "$CACHEDIR/$FILE" "$FILE"
else
- wget $EXTRAWGETARGS $WGETARGS "$dl" || die "Download failed"
+ wget $EXTRAWGETARGS $WGETARGS "$dl" || die "Download failed, try '$SELF -a'."
if [ -e "$FILE" ]; then
mv -b "$FILE" "$CACHEDIR"
ln -s "$CACHEDIR/$FILE" "$FILE"
@@ -150,7 +150,7 @@ for dl in $DL; do
echo -e "${GREEN}md5sum matches OK${COLOR_OFF}: $1"
fi
else
- echo -e "${RED}WARN${COLOR_OFF}: can't find downloaded file $FILE"
+ echo -e "${RED}WARN${COLOR_OFF}: can't find downloaded file $FILE, try '$SELF -a'?"
fi
shift
done