summaryrefslogtreecommitdiff
path: root/helpers/lh_clean
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-11-27 18:31:05 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:45 +0100
commit34192bcf316cbdd2a59a0c33e374d1a204bbd0ad (patch)
treef268a0b633d39b00655bbf1488f82f3319ce39d5 /helpers/lh_clean
parenta41e039597d8cf8a09cde3533210b9a5a26edf13 (diff)
downloadvyos-live-build-34192bcf316cbdd2a59a0c33e374d1a204bbd0ad.tar.gz
vyos-live-build-34192bcf316cbdd2a59a0c33e374d1a204bbd0ad.zip
Don't attempt to remove scripts directory in lh_clean if it doesn't exist.
Diffstat (limited to 'helpers/lh_clean')
-rwxr-xr-xhelpers/lh_clean6
1 files changed, 5 insertions, 1 deletions
diff --git a/helpers/lh_clean b/helpers/lh_clean
index e037ea87c..ab104b4a8 100755
--- a/helpers/lh_clean
+++ b/helpers/lh_clean
@@ -52,7 +52,11 @@ do
"${0}" --binary
"${0}" --stage
"${0}" --source
- rmdir --ignore-fail-on-non-empty scripts
+
+ if [ -d scripts ]
+ then
+ rmdir --ignore-fail-on-non-empty scripts
+ fi
;;
--cache)