You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
citrine/make.sh

26 lines
476 B
Bash

3 years ago
#!/bin/bash
ins() {
pacman -Sy dialog --noconfirm --needed
3 years ago
chmod +x *.sh
cp *.sh /usr/bin
mv /usr/bin/citrine.sh /usr/bin/citrine
mv /usr/bin/citrine.internal.sh /usr/bin/citrine.internal
}
testc() {
citrine
}
if [[ "$1" == "" ]]; then
echo "./make.sh install - installs citrine"
echo "./make.sh test - (installs) then runs citrine"
exit 1
fi
if [[ "$1" == "install" ]]; then
ins
elif [[ "$1" == "test" ]]; then
ins
testc
fi