Don't symlink .enter/.exit copy instead

This commit is contained in:
2026-04-27 13:54:11 +01:00
parent 887af8e975
commit 03fda0cde7

View File

@@ -38,8 +38,8 @@ Manage git worktrees by branch name."
fi fi
git worktree add "$wt_dest" "$branch" || return 1 git worktree add "$wt_dest" "$branch" || return 1
if [ -f $root/.enter ] && [ -f $root/.exit ]; then if [ -f $root/.enter ] && [ -f $root/.exit ]; then
ln -s $root/.enter $wt_dest/.enter cp $root/.enter $wt_dest/.enter
ln -s $root/.exit $wt_dest/.exit cp $root/.exit $wt_dest/.exit
_autoenv_authorized $wt_dest/.enter yes _autoenv_authorized $wt_dest/.enter yes
_autoenv_authorized $wt_dest/.exit yes _autoenv_authorized $wt_dest/.exit yes
fi fi