From 6531126eb2ccaf472598e2e5c752ffd8835f43e4 Mon Sep 17 00:00:00 2001 From: Anagh Kumar Baranwal Date: Wed, 24 Oct 2018 11:39:20 +0530 Subject: [PATCH] Fixes the rc docs creation Signed-off-by: Anagh Kumar Baranwal --- bin/make_rc_docs.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/bin/make_rc_docs.sh b/bin/make_rc_docs.sh index 1f2c3e113..279e6302b 100755 --- a/bin/make_rc_docs.sh +++ b/bin/make_rc_docs.sh @@ -4,18 +4,20 @@ set -e go install -mkdir -p /tmp/rclone_cache_test +mkdir -p /tmp/rclone/cache_test +mkdir -p /tmp/rclone/rc_mount export RCLONE_CONFIG_RCDOCS_TYPE=cache export RCLONE_CONFIG_RCDOCS_REMOTE=/tmp/rclone/cache_test -rclone -q --rc mount rcdocs: /mnt/tmp/ & +rclone -q --rc mount rcdocs: /tmp/rclone/rc_mount & sleep 0.5 -rclone rc > /tmp/z.md -fusermount -z -u /mnt/tmp/ +rclone rc > /tmp/rclone/z.md +fusermount -u -z /tmp/rclone/rc_mount > /dev/null 2>&1 || umount /tmp/rclone/rc_mount awk ' BEGIN {p=1} - /^