From a4ede211a2632ba2a3d515bf2cec26874807aa1c Mon Sep 17 00:00:00 2001 From: b4rkod Date: Sun, 19 Nov 2023 20:46:07 +0300 Subject: improvements(maybe) --- copy_to_html.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'copy_to_html.sh') diff --git a/copy_to_html.sh b/copy_to_html.sh index fa4eca2..ce3f6ab 100755 --- a/copy_to_html.sh +++ b/copy_to_html.sh @@ -1,8 +1,9 @@ #!/bin/sh +cd $HOME/www/$1 || break for F in $(ls); do FILE=$(basename $F|sed s/.txt/.html/) echo $FILE -$HOMe/www/sh/formatter.sh $F >| "$HOME/www/source/$FILE" +$HOME/www/sh/formatter.sh $F >| "$HOME/www/source/$1/$FILE" done -- cgit v1.2.3