summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/syspatch/syspatch.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh
index e92907eb57b..aea126d346e 100644
--- a/usr.sbin/syspatch/syspatch.sh
+++ b/usr.sbin/syspatch/syspatch.sh
@@ -1,6 +1,6 @@
#!/bin/ksh
#
-# $OpenBSD: syspatch.sh,v 1.110 2017/05/26 14:43:25 ajacoutot Exp $
+# $OpenBSD: syspatch.sh,v 1.111 2017/05/26 15:28:00 ajacoutot Exp $
#
# Copyright (c) 2016, 2017 Antoine Jacoutot <ajacoutot@openbsd.org>
#
@@ -312,7 +312,7 @@ while getopts clRr arg; do
case ${arg} in
c) ls_missing ;;
l) ls_installed ;;
- R) while rollback_patch; do :; done ;;
+ R) while [[ -n $(ls_installed) ]]; do rollback_patch; done ;;
r) rollback_patch ;;
*) usage ;;
esac