feat: install script mudlet update

This commit is contained in:
2023-08-15 10:31:54 +03:00
parent 371859ad91
commit d11d54d030
2 changed files with 9 additions and 1 deletions

View File

@@ -56,9 +56,16 @@ home() {
case $sub in
backup | b)
rsync -vtr --exclude ".git" --exclude "node_modules" --no-links $HOME/.config/mudlet $DOTFILES/.config/
for file in $DOTFILES/.config/mudlet/profiles/Aardwolf/**/*.xml; do
sed -i '' -E 's/\/Users\/([^\/]+)\//$HOME\//g' $file
done
;;
restore | r)
rsync -vtr --exclude ".git" --exclude "node_modules" --no-links $DOTFILES/.config/mudlet $HOME/.config/
for file in $DOTFILES/.config/mudlet/profiles/Aardwolf/**/*.xml; do
echo_yellow "Fixing paths in $file"
sed -i '' -e "s/\$HOME/${HOME//\//\\/}/g" $file
done
;;
*)
echo_red "No command or invalid command supplied."