mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 15:11:56 +01:00
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:
parent
85f142a206
commit
96f8b7c827
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user