diff --git a/README.md b/README.md index 21a94a4..2750876 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,6 @@ Rename u by uu, for update user. ### dotfiles to config -Implement f instruction - make as function dotfiles to config ### config to dotfile diff --git a/config/files.conf b/config/files.conf index c00d77e..c7cf623 100644 --- a/config/files.conf +++ b/config/files.conf @@ -24,6 +24,6 @@ f /etc/makepkg.conf dotfiles/dotetc/makepkg.conf f /etc/pacman.conf dotfiles/dotetc/makepkg.conf f /etc/doas.conf dotfiles/dotetc/doas.conf" -# Use `git pull ~/Documents/git/${}` for u -# Use `install -Dm644 ` for f -# Use `cp -Rf ` for d +# Use `git pull ~/Documents/git/${}` for u -> OK +# Use `install -Dm644 ` for f -> OK +# Use `cp -Rf ` for d -> OK diff --git a/save_config_file b/save_config_file index 8c5d302..088ca0b 100755 --- a/save_config_file +++ b/save_config_file @@ -8,8 +8,8 @@ CONFIG_PATH="./config" . ${CONFIG_PATH}/*.conf -echo "$_GIT_FOLDER" -echo "$_INSTRUCTIONS" +#echo "$_GIT_FOLDER" +#echo "$_INSTRUCTIONS" while VAR= read -r line; do @@ -22,7 +22,7 @@ do cp -Rf ${_GIT_FOLDER}/${operand_2}/* ${operand_1} elif [ "$order" = "f" ] then - echo ".. f detected .." + install -Dm644 ${_GIT_FOLDER}/${operand_2} ${operand_1} elif [ "$order" = "u" ] then cd "${_GIT_FOLDER}/${operand_1}" @@ -30,8 +30,8 @@ do cd - else echo "Err, $order uknown" + echo ".. ${order} ${operand_1} ${operand_2} .."; fi - echo ".. ${order} ${operand_1} ${operand_2} .."; done <<< "$_INSTRUCTIONS"