Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136632121
D1550.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
912 B
Referenced Files
None
Subscribers
None
D1550.diff
View Options
Index: usr.sbin/freebsd-update/freebsd-update.sh
===================================================================
--- usr.sbin/freebsd-update/freebsd-update.sh
+++ usr.sbin/freebsd-update/freebsd-update.sh
@@ -690,7 +690,7 @@
fi
# Check that we have updates ready to install
- if [ -f ${BDHASH}-install/kerneldone && $FORCEFETCH -eq 0 ]; then
+ if [ -f ${BDHASH}-install/kerneldone -a $FORCEFETCH -eq 0 ]; then
echo "You have a partially completed upgrade pending"
echo "Run '$0 install' first."
echo "Run '$0 fetch -F' to proceed anyway."
@@ -3220,7 +3220,7 @@
# Fetch command. Make sure that we're being called
# interactively, then run fetch_check_params and fetch_run
cmd_fetch () {
- if [ ! -t 0 && $NOTTYOK -eq 0 ]; then
+ if [ ! -t 0 -a $NOTTYOK -eq 0 ]; then
echo -n "`basename $0` fetch should not "
echo "be run non-interactively."
echo "Run `basename $0` cron instead."
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 19, 4:16 PM (6 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25651429
Default Alt Text
D1550.diff (912 B)
Attached To
Mode
D1550: Add a sanity check to freebsd-update to disallow a 'fetch' if there are uninstalled upgraded pending Add a -F parameter to override the new behaviour. This also allows fetch to be run without a tty.
Attached
Detach File
Event Timeline
Log In to Comment