qsgen2: Color output

This commit is contained in:
Stig-Ørjan Smelror 2024-02-03 23:13:23 +01:00
parent 8b69d90b63
commit 5986a2f844

4
qsgen2
View File

@ -74,9 +74,9 @@ _list_sites() {
touch "${sites_file}" touch "${sites_file}"
if [[ -f "$sites_file" ]]; then if [[ -f "$sites_file" ]]; then
echo "Registered qsgen2 Sites:" echo "Registered Sites:"
while IFS='|' read -r site_name site_dir; do while IFS='|' read -r site_name site_dir; do
printf "%-30s - Directory: %-50s\n" "Site: $site_name" "$site_dir" printf "%-30s - Directory: %-50s\n" "Site: ${magenta}$site_name${end}" "${blue}$site_dir${end}"
done < "$sites_file" done < "$sites_file"
else else
echo "No sites registered." echo "No sites registered."