Squashing git-clean calls into one call; -X following .gitignore is what we want in place of -x

This commit is contained in:
DarkFeather 2023-10-08 17:03:57 -05:00
parent fb9de15de0
commit 07fec4262e
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296
2 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,7 @@ install: ${list} MaatIcon.png
for i in ${systemdList}; do install -m 0644 -o root $$i ${pkgdir}/usr/lib/systemd/system; done
clean:
git clean -fx && git clean -fd
git clean -fdX
uninstall:
for i in ${list}; do rm -Rf ${installDir}/$$i; done

3
maat
View File

@ -83,8 +83,7 @@ function BuildRepo() {
git clone "$repo"
fi
cd "$repodir"
git clean -fd
git clean -fx
git clean -fdX
output="$(git pull 2>&1)"
if [ -n "$incremental" ] && [ $( echo "$output" | grep -c 'Already up to date.' ) -eq 1 ]; then
return;