We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98a4f0c commit fc97da5Copy full SHA for fc97da5
1 file changed
profile/generateREADME.sh
@@ -1,31 +1,3 @@
1
#!/bin/bash
2
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
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
+../generateREADME.sh
0 commit comments