Browse Source

Sat Jul 13 12:05:15 PM BST 2024

Gabriel Capella 4 months ago
parent
commit
9a0663359f
1 changed files with 3 additions and 2 deletions
  1. 3 2
      start

+ 3 - 2
start

@@ -36,10 +36,10 @@ sub_sync(){
     git submodule update
 
     if [ ! -z "$1" ]; then
-        real_path=$(realpath $1)
+        real_path=$(realpath $HOME/$1)
         to_copy=${real_path#*$HOME}
         cp -R $real_path $dots_dir/$to_copy
-        mv -rf $real_path
+        rm -rf $real_path
         echo "${to_copy/\//}" >> ../to_sync
     fi
 
@@ -47,6 +47,7 @@ sub_sync(){
         file="$dots_dir/$p"
         git add $file
     done < $script_dir/to_sync
+    git add start to_sync
 
     if git commit -am "$(date)"; then
         git remote add origin $repo || true