Fixed rclone issue

This commit is contained in:
Brian Zalewski 2023-11-07 07:06:49 +00:00
parent e0085aa487
commit 651ef0341a

View file

@ -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 ":"`)" 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 ":"`)" END_LINE="$(echo `grep -n -m 1 "# INSTALL DOCTOR MANAGED S3 END" "$CONFIG_FILE" | cut -f1 -d ":"`)"
if command -v gsed > /dev/null; then 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 else
sed -i "$START_LINE,${END_LINE}d" "$CONFIG_FILE" sed -i "$START_LINE,${END_LINE}d" "$CONFIG_FILE" > /dev/null
fi fi
fi fi
logg info 'Adding ~/.config/rclone/rclone.conf INSTALL DOCTOR managed block' logg info 'Adding ~/.config/rclone/rclone.conf INSTALL DOCTOR managed block'