Skip to content

Commit 36dcf3a

Browse files
author
fdellwing
authored
needed to insert the check on other location due to false output
1 parent 68fa6e3 commit 36dcf3a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

bin/check_drupal

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,13 @@ check_security_updates() {
293293
return $EXIT_UNKNOWN
294294
fi
295295

296+
# Remove via drush locked updates, keep the rest
297+
_updates="$(echo "${updates}" | sed '/Locked\ via\ drush/d')"
298+
296299
if [ "${_updates}" != "" ]; then
297300
# Format security updates
298-
# But filter locked updates
299301
# "<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 }')"
301303

302304
# tango out
303305
echo "${_updates}"
@@ -335,11 +337,13 @@ check_system_updates() {
335337
# Remove normal updates and only keep security updates
336338
_updates="$(echo "${_updates}" | grep -v 'SECURITY UPDATE')"
337339

340+
# Remove via drush locked updates, keep the rest
341+
_updates="$(echo "${updates}" | sed '/Locked\ via\ drush/d')"
342+
338343
if [ "${_updates}" != "" ]; then
339344
# Format security updates
340-
# But filter locked updates
341345
# "<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 }')"
343347

344348
# tango out
345349
echo "${_updates}"

0 commit comments

Comments
 (0)