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