qsgen2: Better formatting output

This commit is contained in:
Stig-Ørjan Smelror 2024-02-03 23:10:11 +01:00
parent 1bf5d9c82d
commit 8b69d90b63

2
qsgen2
View File

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