Skip to content

Commit fc97da5

Browse files
committed
simplify README creator
1 parent 98a4f0c commit fc97da5

1 file changed

Lines changed: 1 addition & 29 deletions

File tree

profile/generateREADME.sh

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
11
#!/bin/bash
22

3-
output_file="README.md"
4-
> "$output_file"
5-
6-
files=()
7-
while IFS= read -r line
8-
do
9-
files+=("$line")
10-
done < "files.txt"
11-
input_files="${files[@]}"
12-
13-
# Loop through each file and append its content to the output file
14-
for file in "${files[@]}"
15-
do
16-
17-
# Check if file exists before attempting to read it
18-
if [ -f "$file" ]
19-
then
20-
21-
# Append file content to the output file
22-
cat "$file" >> "$output_file"
23-
24-
# Append blank line
25-
echo -e "\n" >> "$output_file"
26-
27-
else
28-
echo "WARNING: File '$file' does not exist."
29-
fi
30-
31-
done
3+
../generateREADME.sh

0 commit comments

Comments
 (0)