mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-19 04:08:48 +00:00
Final (I hope it is) fixes on installation script. (#161)
This commit is contained in:
commit
89fe9488b9
1 changed files with 9 additions and 4 deletions
13
install.sh
13
install.sh
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
cd "$(dirname "$0")"
|
||||
export base="$(pwd)"
|
||||
|
||||
function try { "$@" || sleep 0; }
|
||||
function v() {
|
||||
|
|
@ -58,18 +59,22 @@ sleep 1
|
|||
|
||||
installags (){
|
||||
v git clone --recursive https://github.com/Aylur/ags.git|| \
|
||||
if [ -d ags ];then printf "\e[36mSeems \"./ags\" already exists.\e[97m\n";else exit 1;fi
|
||||
cd ags
|
||||
if [ -d ags ];then
|
||||
printf "\e[36mSeems \"./ags\" already exists.\e[97m\n"
|
||||
cd ags
|
||||
v git pull
|
||||
else exit 1
|
||||
fi
|
||||
v npm install
|
||||
v meson setup build
|
||||
v meson install -C build
|
||||
cd $base
|
||||
}
|
||||
if command -v ags >/dev/null 2>&1
|
||||
then echo "Command ags already exists."
|
||||
then echo -e "\e[34mCommand \"ags\" already exists. Won't install ags.\e[0m"
|
||||
else installags
|
||||
fi
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
#####################################################################################
|
||||
printf '\e[36m3. Copying\e[97m\n'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue