# The MIT License
#
# Copyright (c) 2011,2012 by Michael Prokop <mika@debian.org>
-# Copyright (c) 2012-2024 by Christoph Berg <myon@debian.org>
+# Copyright (c) 2012-2025 by Christoph Berg <myon@debian.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
if [ "${apt_suite:-}" ]; then
rm -rf source
elif [ "${GIT_COMMIT:-}" ]; then
- rm -rf source/* # remove everything except .git
+ # remove everything except .git
+ find source/ -mindepth 1 -maxdepth 1 -not -name .git | xargs -r rm -rf
fi
# vim:foldmethod=marker ts=2 ft=sh ai expandtab sw=2