Last active
December 6, 2017 13:52
-
-
Save s4kr4/d5ba5e40a1362eff90423facf683474d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
USERNAME="s4kr4m4" | |
INITIALIZED_FLAG=".initialize_completed" | |
main() | |
{ | |
if test -e $INITIALIZED_FLAG; then | |
update | |
else | |
setup | |
touch $INITIALIZED_FLAG | |
fi | |
} | |
setup() | |
{ | |
apt update | |
apt upgrade -y | |
apt install make -y | |
su - s4kr4m4 -c "git clone https://github.com/s4kr4/dotfiles /home/s4kr4m4/.dotfiles \ | |
&& cd /home/s4kr4m4/.dotfiles \ | |
&& make install" | |
} | |
update() | |
{ | |
apt update | |
apt upgrade -y | |
} | |
main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment