get.sh: FURTHER simplify nuke()
this is getting almost comical now Signed-off-by: Leah Rowe <leah@libreboot.org>master
parent
8cb23315d9
commit
8cb0c224a5
|
@ -15,7 +15,7 @@ fetch_targets()
|
||||||
printf "Creating %s tree %s\n" "$project" "$tree"
|
printf "Creating %s tree %s\n" "$project" "$tree"
|
||||||
git_prep "$url" "$bkup_url" "$xbmkpwd/$configdir/$tree/patches" \
|
git_prep "$url" "$bkup_url" "$xbmkpwd/$configdir/$tree/patches" \
|
||||||
"src/$project/$tree" with_submodules
|
"src/$project/$tree" with_submodules
|
||||||
( fx_ nuke find "$xbmkpwd/config" -type f -name "nuke.list" ) || exit 1
|
( fx_ nuke find config -type f -name "nuke.list" ) || err; :
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch_project()
|
fetch_project()
|
||||||
|
@ -31,7 +31,7 @@ fetch_project()
|
||||||
x_ ./mk -f $d
|
x_ ./mk -f $d
|
||||||
done
|
done
|
||||||
clone_project
|
clone_project
|
||||||
( fx_ nuke find "$xbmkpwd/config" -type f -name "nuke.list" ) || exit 1
|
( fx_ nuke find config -type f -name "nuke.list" ) || err; :
|
||||||
}
|
}
|
||||||
|
|
||||||
clone_project()
|
clone_project()
|
||||||
|
@ -170,7 +170,6 @@ tmpclone()
|
||||||
|
|
||||||
nuke()
|
nuke()
|
||||||
{
|
{
|
||||||
rdir="${1#"$xbmkpwd/config/"}" && [ -d "$xbmkpwd/src/${rdir%/*}" ] && \
|
r="${1#config/}" && r="$xbmkpwd/src/${r%/*}" && [ -d "$r" ] && x_ cd \
|
||||||
x_ cd "$xbmkpwd/src/${rdir%/*}" && \
|
"$r" && dx_ "eval [ -L \"\$fx\" ] || x_ rm -Rf" "$xbmkpwd/$1"; :
|
||||||
dx_ "eval [ -L \"\$fx\" ] || x_ rm -Rf" "$1"; :
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue