diff --git a/home/bin/update-profile b/home/bin/update-profile index fbeb0ac..4914b25 100755 --- a/home/bin/update-profile +++ b/home/bin/update-profile @@ -8,8 +8,11 @@ file_changed() { if [ ! -d ~/.local/profile-git ]; then mkdir -p ~/.local/profile-git - git init - git remote add origin https://git.icedream.tech/icedream/profile.git + ( + cd ~/.local/profile-git + git init + git remote add origin https://git.icedream.tech/icedream/profile.git + ) fi (