Squashing git-clean calls into one call; -X following .gitignore is what we want in place of -x
This commit is contained in:
parent
fb9de15de0
commit
07fec4262e
2
Makefile
2
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
|
for i in ${systemdList}; do install -m 0644 -o root $$i ${pkgdir}/usr/lib/systemd/system; done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
git clean -fx && git clean -fd
|
git clean -fdX
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
for i in ${list}; do rm -Rf ${installDir}/$$i; done
|
for i in ${list}; do rm -Rf ${installDir}/$$i; done
|
||||||
|
3
maat
3
maat
@ -83,8 +83,7 @@ function BuildRepo() {
|
|||||||
git clone "$repo"
|
git clone "$repo"
|
||||||
fi
|
fi
|
||||||
cd "$repodir"
|
cd "$repodir"
|
||||||
git clean -fd
|
git clean -fdX
|
||||||
git clean -fx
|
|
||||||
output="$(git pull 2>&1)"
|
output="$(git pull 2>&1)"
|
||||||
if [ -n "$incremental" ] && [ $( echo "$output" | grep -c 'Already up to date.' ) -eq 1 ]; then
|
if [ -n "$incremental" ] && [ $( echo "$output" | grep -c 'Already up to date.' ) -eq 1 ]; then
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user