commit b46213c9c97db51c2b50535ec16c45cf3866940a
parent 8e5fc5a0384c011525fd8151234593e237546440
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Thu, 22 Feb 2024 14:38:50 +0100
Unlink existing namedenv
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/command/pthbs-makegen b/command/pthbs-makegen
@@ -143,6 +143,7 @@ END{
}
env_installdir = "$(VERSIONS)/env." make_envfile()
printf "%s: %s %s\n", ENVIRON["scriptname"], env_installdir"/.pthbs-env", "namedenv/.exists"
+ printf "\t%s\n", "if test -L "q("namedenv/"envname)"; then unlink"q("namedenv/"envname)"; fi"
printf "\t%s\n\n", "busybox ln -sTf "q(env_installdir)" "q("namedenv/"envname)
printf ".PHONY: %s\n", ENVIRON["scriptname"]
}