Fix sudo stuff and cp

This commit is contained in:
askiiart 2023-08-30 22:15:13 -05:00
parent c76d0fcd11
commit 131b2e5ec1
No known key found for this signature in database
GPG key ID: 85505F3A2264FA01
2 changed files with 19 additions and 10 deletions

View file

@ -4,9 +4,11 @@ set -e
if [ $(whoami) != "root" ]; then
$SUDO = "sudo"
else
echo "Run as a normal user, not root"
exit 1
fi
exit 0
command_exists() { type "$1" &>/dev/null; }
if command_exists "apt-get"; then
@ -28,4 +30,4 @@ else
exit 1
fi
cp -r zsh-files/* ~/
cp -r zsh-files/.* ~/