From 07fec4262ee4d7bd58281d6ccc11d98e8ded73fe Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Sun, 8 Oct 2023 17:03:57 -0500 Subject: [PATCH] Squashing git-clean calls into one call; -X following .gitignore is what we want in place of -x --- Makefile | 2 +- maat | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0f72013..b3b4c95 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/maat b/maat index 5f06712..23c054a 100755 --- a/maat +++ b/maat @@ -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;