From 459789b4d04bb4617f9fcf097619b4794af42565 Mon Sep 17 00:00:00 2001 From: Guiorgy Date: Thu, 19 Oct 2023 20:23:26 +0400 Subject: [PATCH] prefer using `-o, --output` option with curl This also allows the use of `sudo` with curl, since using sudo and the redirection operator causes a permission error: `-bash: /usr/local/bin/vackup: Permission denied` --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 729631c..035fa00 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,7 @@ Usage: Download the `vackup` file in this repository to your local machine in your shell path and make it executable. ```shell -curl -sSL https://raw.githubusercontent.com/BretFisher/docker-vackup/main/vackup > /usr/local/bin/vackup -chmod +x /usr/local/bin/vackup +sudo curl -sSL https://raw.githubusercontent.com/BretFisher/docker-vackup/main/vackup -o /usr/local/bin/vackup && sudo chmod +x /usr/local/bin/vackup ``` ## Error conditions