diff --git a/lib/file/truncate b/lib/file/truncate index 8528cb0..f1348dc 100755 --- a/lib/file/truncate +++ b/lib/file/truncate @@ -25,7 +25,7 @@ fi; # (3) Check number of lines to truncate # if [ $2 -gt $(wc -l "$DATA_DIR/$1" | awk '{print $1}') ]; then - slog "Failure: asked to remove $2 lines out of $(wc -l "$DATA_DIR/$1") lines" "file:truncate" "update"; + slog "Failure: asked to remove $2 lines out of `wc -l "$DATA_DIR/$1" | awk '{print $1}'` lines" "file:truncate" "update"; echo 130; exit 130; fi;