File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -293,11 +293,13 @@ check_security_updates() {
293
293
return $EXIT_UNKNOWN
294
294
fi
295
295
296
+ # Remove via drush locked updates, keep the rest
297
+ _updates=" $( echo " ${updates} " | sed ' /Locked\ via\ drush/d' ) "
298
+
296
299
if [ " ${_updates} " != " " ]; then
297
300
# Format security updates
298
- # But filter locked updates
299
301
# "<name> <ver> -> <ver>"
300
- _updates=" $( echo " ${_updates} " | sed ' /Locked\ via\ drush/d ' | awk ' BEGIN {FS=","} ; { print $1" "$2" -> "$3 }' ) "
302
+ _updates=" $( echo " ${_updates} " | awk ' BEGIN {FS=","} ; { print $1" "$2" -> "$3 }' ) "
301
303
302
304
# tango out
303
305
echo " ${_updates} "
@@ -335,11 +337,13 @@ check_system_updates() {
335
337
# Remove normal updates and only keep security updates
336
338
_updates=" $( echo " ${_updates} " | grep -v ' SECURITY UPDATE' ) "
337
339
340
+ # Remove via drush locked updates, keep the rest
341
+ _updates=" $( echo " ${updates} " | sed ' /Locked\ via\ drush/d' ) "
342
+
338
343
if [ " ${_updates} " != " " ]; then
339
344
# Format security updates
340
- # But filter locked updates
341
345
# "<name> <ver> -> <ver>"
342
- _updates=" $( echo " ${_updates} " | sed ' /Locked\ via\ drush/d ' | awk ' BEGIN {FS=","} ; { print $1" "$2" -> "$3 }' ) "
346
+ _updates=" $( echo " ${_updates} " | awk ' BEGIN {FS=","} ; { print $1" "$2" -> "$3 }' ) "
343
347
344
348
# tango out
345
349
echo " ${_updates} "
You can’t perform that action at this time.
0 commit comments