Skip to content

Commit

Permalink
Added first version of install script
Browse files Browse the repository at this point in the history
  • Loading branch information
Porco-Rosso committed Jul 25, 2024
1 parent 17d5acc commit 7ef55ef
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions lipstick-on-a-pig.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#! /bin/bash
printf "\033[1;31mInstalling Golang\033[0m\n"
apt install golang -y
##TOD Add warning of destruction

printf "\033[1;31mGrabbing latest binary\033[0m\n"
#TODO make OS dependent
wget https://github.com/Porco-Rosso/Lipstick-on-a-Pig/releases/latest/download/lipgloss-on-a-pig_darwin_amd64
mkdir /usr/local/bin/
mv lipgloss-on-a-pig_darwin_amd64 /usr/local/bin/lipgloss-on-a-pig

printf "\033[1;31mMaking executable\033[0m\n"
chmod +x /usr/local/bin/lipgloss-on-a-pig

printf "\033[1;31mRemoving old MOTD\033[0m\n"
echo -n >/etc/update-motd.d/10-uname
echo -n > /etc/motd

printf "\033[1;31mAdding lipstick-on-a-pig to MOTD\033[0m\n"
LINE='/usr/local/bin/lipgloss-on-a-pig"'
FILE='~/.bashrc'
grep -qF -- "$LINE" "$FILE" || echo "$LINE" >> "$FILE"

printf "\033[1;31mInstalled!\033[0m\n"
/usr/local/bin/lipgloss-on-a-pig

0 comments on commit 7ef55ef

Please sign in to comment.