added root check
This commit is contained in:
parent
c9c26827a4
commit
598044c076
11
setup.sh
11
setup.sh
@ -1,6 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cp Settings/.zshrc Settings/.vimrc Settings/.zprofile Settings/.gitconfig .
|
cp Settings/.zshrc Settings/.vimrc Settings/.zprofile Settings/.gitconfig .
|
||||||
if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin; fi
|
|
||||||
cp Settings/cdbm /usr/local/bin
|
if [ $(id -u) -ne 0 ]
|
||||||
|
then
|
||||||
|
echo "run me as root to copy cdbm to the system"
|
||||||
|
else
|
||||||
|
if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin; fi
|
||||||
|
cp Settings/cdbm /usr/local/bin
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user