summaryrefslogtreecommitdiff
path: root/testsuite/du/du-k-works
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/du/du-k-works')
-rw-r--r--testsuite/du/du-k-works5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/du/du-k-works b/testsuite/du/du-k-works
index 43b119c..177a1a2 100644
--- a/testsuite/du/du-k-works
+++ b/testsuite/du/du-k-works
@@ -1,3 +1,4 @@
-du -k .. > logfile.gnu
-busybox du -k .. > logfile.bb
+[ -n "$d" ] || d=..
+du -k "$d" > logfile.gnu
+busybox du -k "$d" > logfile.bb
cmp logfile.gnu logfile.bb