Skip to content
Snippets Groups Projects
Commit e3ee7bd1 authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Remove old cleanup code for `vcsh use`

parent 9a079178
No related branches found
No related tags found
No related merge requests found
...@@ -126,9 +126,6 @@ run() { ...@@ -126,9 +126,6 @@ run() {
seed_gitignore() { seed_gitignore() {
use use
# Switching directory as this has to be executed from $HOME to be of any use.
# Going back into old directory at the end in case `vcsh use` is reactivated.
old_dir="$PWD"
cd "$HOME" cd "$HOME"
gitignores=$(for file in $(git ls-files); do gitignores=$(for file in $(git ls-files); do
while true; do while true; do
...@@ -153,7 +150,6 @@ seed_gitignore() { ...@@ -153,7 +150,6 @@ seed_gitignore() {
fi fi
mv -f "$tempfile" "$HOME/.gitignore.d/$VCSH_REPO_NAME" || mv -f "$tempfile" "$HOME/.gitignore.d/$VCSH_REPO_NAME" ||
fatal "could not move '$tempfile' to '$HOME/.gitignore.d/$VCSH_REPO_NAME'" 53 fatal "could not move '$tempfile' to '$HOME/.gitignore.d/$VCSH_REPO_NAME'" 53
cd "$old_dir"
} }
setup() { setup() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment