diff options
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 |