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:
@@ -16,19 +16,26 @@ fi
|
|||||||
find "$INPUT_DIR" -regextype sed -regex ".*c[0-9]*-.*" -print0 | sort -z |
|
find "$INPUT_DIR" -regextype sed -regex ".*c[0-9]*-.*" -print0 | sort -z |
|
||||||
while IFS= read -r -d '' filePath; do
|
while IFS= read -r -d '' filePath; do
|
||||||
file="${filePath:$((${#LOCATION} + 1))}"
|
file="${filePath:$((${#LOCATION} + 1))}"
|
||||||
|
if [[ $file != *"##"* ]]; then
|
||||||
|
|
||||||
if [ -z "$OUTPUT_FILE" ]; then
|
if [ -z "$OUTPUT_FILE" ]; then
|
||||||
OUTPUT_FILE=$(echo "$file" | awk -F "[-]" '{print $2}')
|
OUTPUT_FILE=$(echo "$file" | awk -F "[-]" '{print $2}')
|
||||||
echo " into '$OUTPUT_FILE'"
|
echo " into '$OUTPUT_FILE'"
|
||||||
if [ -f "$OUTPUT_FILE" ]; then
|
if [ -f "$OUTPUT_FILE" ]; then
|
||||||
mv "$OUTPUT_FILE" "$OUTPUT_FILE.bak"
|
mv "$OUTPUT_FILE" "$OUTPUT_FILE.bak"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f "$OUTPUT_FILE" ]; then
|
if [ ! -f "$OUTPUT_FILE" ]; then
|
||||||
touch "$OUTPUT_FILE"
|
touch "$OUTPUT_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "> $file"
|
echo "> $file"
|
||||||
(cat "$INPUT_DIR/$file"; echo) >> "$OUTPUT_FILE"
|
(
|
||||||
|
cat "$INPUT_DIR/$file"
|
||||||
|
echo
|
||||||
|
) >>"$OUTPUT_FILE"
|
||||||
|
else
|
||||||
|
echo "x $file"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user