fixed sudo

This commit is contained in:
Navan Chauhan 2018-07-31 17:29:38 +05:30 committed by GitHub
parent 129a0aad7e
commit 8c0287ef53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ copyManpage()
{
manPath="$prefix/share/man/man1"
if [ -f "$prefix/man/man1/bash-snippets.1" ]; then rm -f "$prefix/man/man1/bash-snippets.1"; fi
cp bash-snippets.1 $manPath 2>&1 || { echo "Failure"; echo "Error copying file, try running install script as sudo"; exit 1; }
sudo cp bash-snippets.1 $manPath 2>&1 || { echo "Failure"; echo "Error copying file, try running install script as sudo"; exit 1; }
}
response=$( echo "$@" | grep -Eo "\-\-prefix")