mirror of
https://github.com/alexanderepstein/Bash-Snippets
synced 2018-11-08 02:59:35 +01:00
Compressing if statement in install to be more readable
This commit is contained in:
parent
eaf7830533
commit
6f3b15457c
@ -41,11 +41,8 @@ singleInstall()
|
||||
|
||||
copyManpage()
|
||||
{
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
manPath="/usr/local/share/man/man1"
|
||||
else
|
||||
manPath="/usr/local/man/man1"
|
||||
fi
|
||||
if [[ "$(uname)" == "Darwin" ]]; then manPath="/usr/local/share/man/man1"
|
||||
else manPath="/usr/local/man/man1" ;fi
|
||||
cp bash-snippets.1 $manPath 2>&1 || { echo "Failure"; echo "Error copying file, try running install script as sudo"; exit 1; }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user