mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
Ports: Only remove dir contents on clean
, not the dir itself
The entirety of `.port_include.sh` depends on having a current working directory for the respective port. If we were to remove the directory, some actions such as `fetch` could fail since our current working directory would now be an invalid inode. This issue was exposed by running `./package.sh` followed by `./package.sh dev` and answering 'y' to the question on cleaning the build directory.
This commit is contained in:
parent
71671e0921
commit
a81e83f3b5
Notes:
sideshowbarker
2024-07-17 11:30:05 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/a81e83f3b5 Pull-request: https://github.com/SerenityOS/serenity/pull/18736
|
@ -480,7 +480,7 @@ func_defined post_install || post_install() {
|
|||
:
|
||||
}
|
||||
clean() {
|
||||
rm -rf "${PORT_BUILD_DIR}"
|
||||
rm -rf "${PORT_BUILD_DIR}/"*
|
||||
}
|
||||
clean_dist() {
|
||||
OLDIFS=$IFS
|
||||
|
|
Loading…
Reference in a new issue