Skip to content

Commit

Permalink
feat (Hyde code ) : some error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kRHYME7 committed Sep 13, 2024
1 parent d6525cb commit c0531e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Hyde
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,8 @@ HELP
readarray -t codeConf < <(find "${confDir}" -mindepth 1 -maxdepth 1 -type d -name "Code*" -o -name "VSCodium*" -o -name "Cursor" | sort)
print_prompt -y "Setting '${codet}' as code theme..."
for i in "${!codeConf[@]}" ; do
[ -f "${codeConf[i]}/User/settings.json" ] || continue
[ -d "${codeConf[i]}/User" ] || continue
[ -f "${codeConf[i]}/User/settings.json" ] || echo -e "{\n \"workbench.colorTheme\":\"wallbash\" \n}" > "${codeConf[i]}/User/settings.json"
jq --arg codet "${codet}" '.["workbench.colorTheme"] |= $codet' "${codeConf[i]}/User/settings.json" > tmpvsc && mv tmpvsc "${codeConf[i]}/User/settings.json"
done
;;
Expand Down

0 comments on commit c0531e5

Please sign in to comment.