Working.
All checks were successful
/ deploy (push) Successful in 1s

This commit is contained in:
Lord_Devi 2024-07-09 01:55:43 -04:00
parent 1ef641cca9
commit 14178b3dab

View file

@ -97,6 +97,14 @@ _link_yadm_script() {
ln -sr "${GHQ_ROOT}/${__repo}"/yadm \
"${HOME}/.local/bin/"
fi
if [ -L "${HOME}/.local/share/man/man1/yadm.1" ]; then
_mordu "${HOME}/.local/share/man/man1/yadm.1 already found. Not linking."
else
_mordu "${HOME}/.local/share/man/man1/yadm.1 not found. Linking."
ln -sr "${GHQ_ROOT}/${__repo}"/yadm.1 \
"${HOME}/.local/share/man/man1/"
fi
}
# }}} </link yadm script>
@ -109,7 +117,7 @@ _move_old_init_to_backup() {
"${HOME}/.bashrc")
for file in "${_init_file[@]}" ; do
if [ -e "$file" ]; then
if [ -f "$file" ]; then
_mordu "Found existing ${file}, moving to ${file}.bak."
mv "$file" "$file.bak"
fi
@ -121,9 +129,13 @@ _move_old_init_to_backup() {
_clone_yadm_dotz() {
local _repo="https://git.mgk.one/ld/dotz"
_mordu "Using yadm to clone ${_repo}."
$_yadm clone "$_repo"
_mordu "${_repo} cloned."
if [ -d "/home/ld/.local/share/yadm/repo.git" ]; then
_mordu "Yadm repo already exists. Not cloning."
else
_mordu "Using yadm to clone ${_repo}."
$_yadm clone "$_repo"
_mordu "${_repo} cloned."
fi
}
# }}} </clone yadm dotz>