$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}