From 6493e14ff41e7a4bff7fabeb40c39d0f2cdebca3 Mon Sep 17 00:00:00 2001 From: "Georges.L" Date: Thu, 12 Aug 2021 14:59:28 +0200 Subject: [PATCH] Added alternative install command for sudoer users --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ebf0fca..f3aeae7 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,12 @@ brew install sheerun/git-squash/git-squash With `curl` on MacOS and Linux, including Windows Subsystem for Linux: -``` +```bash +## If you are a root user curl https://raw.githubusercontent.com/sheerun/git-squash/master/git-squash > /usr/local/bin/git-squash && chmod a+x /usr/local/bin/git-squash + +## Or if you are a non-root but sudoer user: +sudo sh -c 'curl https://raw.githubusercontent.com/sheerun/git-squash/master/git-squash > /usr/local/bin/git-squash && chmod a+x /usr/local/bin/git-squash' ``` ## Usage