Commit 20b1a266 authored by Vladimír Čunát's avatar Vladimír Čunát

bootstrap-depends nitpick: warn about rm -rf ~/.local

Some people might get surprised, as it's the default location for quite
some data nowadays ($XDG_DATA_HOME).
parent 422b5f19
Pipeline #7111 canceled with stages
in 30 seconds
......@@ -44,11 +44,14 @@ PREFIX=${1}; [ -z ${PREFIX} ] && export PREFIX="${HOME}/.local"
function bootstrap_cleanup {
if [ -n "$BOOTSTRAP_CLEANUP" ]; then
echo "Bootstrap script has changed, cleaning up ${PREFIX}"
rm -rf "${PREFIX}"
echo "Bootstrap script has changed, cleaning up ${PREFIX}"
rm -rf "${PREFIX}"
else
echo "Bootstrap script has changed, you should cleanup ${PREFIX}"
echo "or rerun this script with BOOSTRAP_CLEANUP=1 env variable"
echo "Bootstrap script has changed, you should cleanup ${PREFIX}"
echo "or rerun this script with BOOSTRAP_CLEANUP=1 env variable."
if [ "$PREFIX" = "$HOME/.local" ]; then
echo "BEWARE: e.g. your ~/.local/share may contain something unrelated."
fi
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment