From e858556b37b4700577692dc9c8e9eb029c095f17 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Fri, 9 Jun 2017 07:37:38 +0000 Subject: [PATCH] Drop uneeded return from rollback_patch(). --- usr.sbin/syspatch/syspatch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh index 9f84c94d59a..a4eb76b43f3 100644 --- a/usr.sbin/syspatch/syspatch.sh +++ b/usr.sbin/syspatch/syspatch.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: syspatch.sh,v 1.113 2017/06/09 07:32:26 ajacoutot Exp $ +# $OpenBSD: syspatch.sh,v 1.114 2017/06/09 07:37:38 ajacoutot Exp $ # # Copyright (c) 2016, 2017 Antoine Jacoutot # @@ -212,7 +212,7 @@ rollback_patch() local _edir _file _files _patch _ret=0 _patch="$(ls_installed | tail -1)" - [[ -n ${_patch} ]] || return # function used as a while condition + [[ -n ${_patch} ]] _edir=${_TMP}/${_patch}-rollback _patch=${_OSrev}-${_patch} -- 2.20.1