15 lines
553 B
Text
15 lines
553 B
Text
$NetBSD: patch-ab,v 1.2 2011/03/27 23:05:23 wiz Exp $
|
|
|
|
Fix unportable test(1) construct.
|
|
|
|
--- defrag.in.orig 2003-10-12 14:13:16.000000000 +0200
|
|
+++ defrag.in 2006-12-01 21:28:37.000000000 +0100
|
|
@@ -35,7 +35,7 @@ defrag_file() {
|
|
if [ -f "$1" -a ! -L "$1" ]; then
|
|
for (( i=1; i < 100; i++)); do
|
|
if [ ! -L "$1.$i" -a ! -e "$1.$i" ]; then
|
|
- [ "$opt_verbose" == 1 ] && echo "$1"
|
|
+ [ "$opt_verbose" = 1 ] && echo "$1"
|
|
size1="`stat -c%s -- "$1"`"
|
|
if [ $? -ne 0 ]; then
|
|
echo >&2 "$1: stat failed, not defragging"
|