aboutsummaryrefslogtreecommitdiff
path: root/tools/update_man_pages.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/update_man_pages.sh')
-rwxr-xr-xtools/update_man_pages.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/update_man_pages.sh b/tools/update_man_pages.sh
index 6a57b4c..fe96125 100755
--- a/tools/update_man_pages.sh
+++ b/tools/update_man_pages.sh
@@ -78,12 +78,12 @@ update_date() {
new_date=$(ddate +"%{%A, %B %d%}, %Y YOLD")
- for i in $(ls man1); do
- sed_file man1/$i "s/$old_date/$new_date/g"
+ for i in man1/*; do
+ sed_file $i "s/$old_date/$new_date/g"
done
- for i in $(ls man5); do
- sed_file man5/$i "s/$old_date/$new_date/g"
+ for i in man5/*; do
+ sed_file $i "s/$old_date/$new_date/g"
done
if [[ "$?" == "0" ]]; then