The docs/source has been introduced by change-id:
Ide5f7d980a294c7a9f8a3decaed0939f1c239934, but clean.sh try to clean
whole docs direcotry, which is not right.
Meanwhile, there are directories in FILES_TO_CLEAN variable, which means
rm -f will not work. We need to use rm -rf.
Change-Id: I4e10d70d5638ce7e7a9215f5bd848422aa90aad3
Closes-Bug: #1335399
... | ... |
@@ -120,9 +120,9 @@ fi |
120 | 120 |
|
121 | 121 |
# Clean up files |
122 | 122 |
|
123 |
-FILES_TO_CLEAN=".localrc.auto docs-files docs/ shocco/ stack-screenrc test*.conf* test.ini*" |
|
123 |
+FILES_TO_CLEAN=".localrc.auto docs/files docs/html shocco/ stack-screenrc test*.conf* test.ini*" |
|
124 | 124 |
FILES_TO_CLEAN+=".stackenv .prereqs" |
125 | 125 |
|
126 | 126 |
for file in $FILES_TO_CLEAN; do |
127 |
- rm -f $TOP_DIR/$file |
|
127 |
+ rm -rf $TOP_DIR/$file |
|
128 | 128 |
done |