🐛 Fix quote bug
This commit is contained in:
parent
aae3847a46
commit
e46cf2e130
|
@ -70,7 +70,14 @@ find -L "$SOURCE_DIR" -type f -name "*.md" -exec grep -q "publish: true" {} \; -
|
|||
done
|
||||
|
||||
# Delete files in DEST_DIR that don't exist in SOURCE_DIR anymore
|
||||
find "$DEST_DIR" -type f -exec sh -c '[ ! -e "$SOURCE_DIR/${1#$DEST_DIR/}" ] && rm "$1"' _ {} \;
|
||||
find "$DEST_DIR" -type f -exec sh -c '
|
||||
relative_path=${1#$DEST_DIR/}
|
||||
source_file="$SOURCE_DIR/$relative_path"
|
||||
|
||||
if [ ! -e "$source_file" ]; then
|
||||
rm "$1"
|
||||
fi
|
||||
' _ {} \;
|
||||
|
||||
# Print the log file
|
||||
cat "$LOG_FILE"
|
||||
|
|
Loading…
Reference in New Issue