1
0
mirror of https://gitlab.com/linuxstuff/dotfiles.git synced 2026-06-19 04:06:00 +02:00

skip yadm files

This commit is contained in:
Simon
2021-02-19 08:58:23 +01:00
parent 136f3082aa
commit fdb7933c28
+8 -1
View File
@@ -16,6 +16,7 @@ fi
find "$INPUT_DIR" -regextype sed -regex ".*c[0-9]*-.*" -print0 | sort -z |
while IFS= read -r -d '' filePath; do
file="${filePath:$((${#LOCATION} + 1))}"
if [[ $file != *"##"* ]]; then
if [ -z "$OUTPUT_FILE" ]; then
OUTPUT_FILE=$(echo "$file" | awk -F "[-]" '{print $2}')
@@ -30,5 +31,11 @@ find "$INPUT_DIR" -regextype sed -regex ".*c[0-9]*-.*" -print0 | sort -z |
fi
echo "> $file"
(cat "$INPUT_DIR/$file"; echo) >> "$OUTPUT_FILE"
(
cat "$INPUT_DIR/$file"
echo
) >>"$OUTPUT_FILE"
else
echo "x $file"
fi
done