diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-10-05 23:20:10 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-10-05 23:20:10 +0200 |
commit | f023c7d28624c77712973ad65eb51434b35ce086 (patch) | |
tree | d85c5e8342837fce3fff92b9737586065a4eed72 /phlogmap | |
parent | ac4f5eab34ab8a95cd35beed498bb1d7bac854a7 (diff) | |
download | scripts-f023c7d28624c77712973ad65eb51434b35ce086.tar.gz scripts-f023c7d28624c77712973ad65eb51434b35ce086.tar.bz2 scripts-f023c7d28624c77712973ad65eb51434b35ce086.zip |
update
Diffstat (limited to 'phlogmap')
-rwxr-xr-x | phlogmap | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ #!/usr/bin/env bash # build gophermap -cd $HOME/src/gopher/phlog +cd "$HOME/src/gopher/phlog" echo "+-----------------------------------+" > gophermap echo "| Phil's Phlog |" >> gophermap @@ -12,8 +12,8 @@ echo "" >> gophermap dirs=($(ls -dr */)) for dir in "${dirs[@]}"; do - dt=$(echo $dir| cut -c 1-10) - title="$(head -n 1 $dir/gophermap)" + dt=$(echo "$dir" | cut -c 1-10) + title="$(head -n 1 "$dir/gophermap")" echo -e "1$dt $title\t/phlog/$dir\tspike.nagatha.fr\t70" >> gophermap done |