From: ajacoutot Date: Fri, 9 Jun 2017 07:37:38 +0000 (+0000) Subject: Drop uneeded return from rollback_patch(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e858556b37b4700577692dc9c8e9eb029c095f17;p=openbsd Drop uneeded return from rollback_patch(). --- 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}