summaryrefslogtreecommitdiffstats
path: root/src/oh-autoclean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/oh-autoclean.sh')
-rw-r--r--src/oh-autoclean.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/oh-autoclean.sh b/src/oh-autoclean.sh
index e0488bd..e5d1653 100644
--- a/src/oh-autoclean.sh
+++ b/src/oh-autoclean.sh
@@ -45,7 +45,9 @@ main()
oh_buildsystems_init
- oh_buildsystem_do 'clean' "${@}"
+ if sys="$(oh_buildsystem_find 'clean')"; then
+ oh_buildsystem_do 'clean' "${sys}" "${@}"
+ fi
}
main "${@}"