From f298ecffca34f2cb06297d23eb407e68ac2893be Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Fri, 25 Nov 2022 03:11:59 +0000 Subject: [PATCH] Update dotfiles/.local/share/chezmoi/system-linux/usr/local/bin/executable_rclone-mount --- .../system-linux/usr/local/bin/executable_rclone-mount | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dotfiles/.local/share/chezmoi/system-linux/usr/local/bin/executable_rclone-mount b/dotfiles/.local/share/chezmoi/system-linux/usr/local/bin/executable_rclone-mount index b90ffbe9..22dc5f93 100644 --- a/dotfiles/.local/share/chezmoi/system-linux/usr/local/bin/executable_rclone-mount +++ b/dotfiles/.local/share/chezmoi/system-linux/usr/local/bin/executable_rclone-mount @@ -37,6 +37,10 @@ fi if [ ! -d "$MOUNT_PATH" ]; then mkdir -p "$MOUNT_PATH" fi +RCLONE_IGNORE="$CONFIG_FOLDER/rcloneignore" +if [ ! -f "$RCLONE_IGNORE" ] && [ -f "/etc/rcloneignore" ]; then + RCLONE_IGNORE='etc/rcloneignore' +fi ### Mount /usr/bin/rclone --config="$CONFIG_FOLDER/rclone.conf" \ @@ -56,5 +60,5 @@ fi --dir-cache-time=60m \ --vfs-cache-mode full \ --cache-info-age=60m \ - --filter-from="$CONFIG_FOLDER/rcloneignore" + --filter-from="$RCLONE_IGNORE" "$MOUNT":/ "$MOUNT_PATH"