summaryrefslogtreecommitdiff
path: root/pkgtools/pkg/patches/patch-scripts_periodic_411.pkg-backup.in
blob: b65bf2375f82f682dbb7e98d0e57679a5b9d9c87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-scripts_periodic_411.pkg-backup.in,v 1.1 2020/04/10 23:28:32 khorben Exp $

Pass the portability test

--- scripts/periodic/411.pkg-backup.in.orig	2020-04-10 23:10:58.674050832 +0000
+++ scripts/periodic/411.pkg-backup.in
@@ -25,7 +25,7 @@ backup_pkg() {
 	for i in $(jot ${count} ${lower} 0); do
 		local higher=$(( ${i} + 1 ))
 		local file
-		if [ ${i} == 0 ]; then
+		if [ ${i} = 0 ]; then
 			file=${bak_file}
 		else
 			file=${bak_file}.${i}