linux*-tkg-config/prepare: Fix cleanup step on non-arch distros (#65)

This commit is contained in:
Adel Kara Slimane 2020-09-12 15:58:38 +02:00 committed by GitHub
parent cb07b08a36
commit afc7b56bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 159 additions and 159 deletions

View File

@ -917,6 +917,7 @@ exit_cleanup() {
rm -f "$_where"/"$_p" rm -f "$_where"/"$_p"
done done
if [ "${_distro}" = "Arch" ]; then
if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then
rm -rf "$_where"/src/* rm -rf "$_where"/src/*
# Double tap # Double tap
@ -970,7 +971,6 @@ exit_cleanup() {
rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c
fi fi
if [ "${_distro}" = "Arch" ]; then
remove_deps remove_deps
fi fi

View File

@ -944,6 +944,7 @@ exit_cleanup() {
rm -f "$_where"/"$_p" rm -f "$_where"/"$_p"
done done
if [ "${_distro}" = "Arch" ]; then
if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then
rm -rf "$_where"/src/* rm -rf "$_where"/src/*
# Double tap # Double tap
@ -997,7 +998,6 @@ exit_cleanup() {
rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c
fi fi
if [ "${_distro}" = "Arch" ]; then
remove_deps remove_deps
fi fi

View File

@ -912,6 +912,7 @@ exit_cleanup() {
rm -f "$_where"/"$_p" rm -f "$_where"/"$_p"
done done
if [ "${_distro}" = "Arch" ]; then
if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then if [ "$_NUKR" = "true" ] && [ "$_where" != "$srcdir" ]; then
rm -rf "$_where"/src/* rm -rf "$_where"/src/*
# Double tap # Double tap
@ -965,7 +966,6 @@ exit_cleanup() {
rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c rm -f "$srcdir"/linux-${_basekernel}/mm/uksm.c
fi fi
if [ "${_distro}" = "Arch" ]; then
remove_deps remove_deps
fi fi