From 651ef0341a2ebb8cdafecfa8b8420eafac728e35 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Tue, 7 Nov 2023 07:06:49 +0000 Subject: [PATCH] Fixed rclone issue --- .../universal/run_onchange_after_50-rclone.sh.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_50-rclone.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_50-rclone.sh.tmpl index 6d9ce2f9..9c4d87f4 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_50-rclone.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_50-rclone.sh.tmpl @@ -58,9 +58,9 @@ if command -v rclone > /dev/null; then START_LINE="$(echo `grep -n -m 1 "# INSTALL DOCTOR MANAGED S3 START" "$CONFIG_FILE" | cut -f1 -d ":"`)" END_LINE="$(echo `grep -n -m 1 "# INSTALL DOCTOR MANAGED S3 END" "$CONFIG_FILE" | cut -f1 -d ":"`)" if command -v gsed > /dev/null; then - gsed -i "$START_LINE,${END_LINE}d" "$CONFIG_FILE" + gsed -i "$START_LINE,${END_LINE}d" "$CONFIG_FILE" > /dev/null else - sed -i "$START_LINE,${END_LINE}d" "$CONFIG_FILE" + sed -i "$START_LINE,${END_LINE}d" "$CONFIG_FILE" > /dev/null fi fi logg info 'Adding ~/.config/rclone/rclone.conf INSTALL DOCTOR managed block'