$NetBSD: patch-scripts_periodic_411.pkg-backup,v 1.2 2025/02/10 13:13:27 wiz Exp $ Fix unportable test(1) operator. --- scripts/periodic/411.pkg-backup.orig 2018-01-06 22:54:19.000000000 +0000 +++ scripts/periodic/411.pkg-backup @@ -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}