install.sh: fix harmless error message on install

This was caused by trying to write to a non existent file, and
changing the order of the cleanup fixed it.

https://forum.rclone.org/t/rclone-v1-65-0-release/43100/18
This commit is contained in:
Nick Craig-Wood 2023-11-28 19:08:49 +00:00
parent 938753ddc3
commit b3c2985544
1 changed files with 3 additions and 3 deletions

View File

@ -193,12 +193,12 @@ case "$OS" in
exit 2
esac
#cleanup
rm -rf "$tmp_dir"
#update version variable post install
version=$(rclone --version 2>>errors | head -n 1)
#cleanup
rm -rf "$tmp_dir"
printf "\n${version} has successfully installed."
printf '\nNow run "rclone config" for setup. Check https://rclone.org/docs/ for more details.\n\n'
exit 0