Skip to content
Snippets Groups Projects
Commit 6661045a authored by Nikolaos Kakouros's avatar Nikolaos Kakouros
Browse files

wip

parent 4db8b514
No related branches found
No related tags found
No related merge requests found
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
if which yaourt &>/dev/null; then if which yaourt &>/dev/null; then
distro_pacman="${distro_pacman:-yaourt -S --noconfirm}" distro_pacman="${distro_pacman:-yaourt -S --noconfirm}"
distro_update_cmd="${distro_update_cmd:-yaourt -Syyuu --aur --noconfirm --devel}" distro_update_cmd="${distro_update_cmd:-yaourt -Syy --aur --noconfirm --devel}"
elif which paru &>/dev/null; then elif which paru &>/dev/null; then
distro_pacman="${distro_pacman:-paru -S --noconfirm}" distro_pacman="${distro_pacman:-paru -S --noconfirm}"
distro_update_cmd="${distro_pacman:-paru -Syyuu --noconfirm}" distro_update_cmd="${distro_pacman:-paru -Syy --noconfirm}"
else else
distro_pacman="${distro_pacman:-sudo pacman -S --noconfirm}" distro_pacman="${distro_pacman:-sudo pacman -S --noconfirm}"
distro_update_cmd="${distro_update_cmd:-sudo pacman -Syyuu --noconfirm}" distro_update_cmd="${distro_update_cmd:-sudo pacman -Syyuu --noconfirm}"
...@@ -30,4 +30,4 @@ $distro_pacman "${distro_packages[@]}" ...@@ -30,4 +30,4 @@ $distro_pacman "${distro_packages[@]}"
info "installing Python 3 dependencies..." info "installing Python 3 dependencies..."
sudo pip3 install "${pip_packages[@]}" sudo pip3 install --break-system-packages "${pip_packages[@]}"
...@@ -70,7 +70,7 @@ function core_parse_project_config() { ...@@ -70,7 +70,7 @@ function core_parse_project_config() {
local value local value
while read -s line; do while read -s line; do
if [[ "$line" =~ ^#|\s*\[ ]]; then if [[ "$line" =~ ^(#|\s*\[|$) ]]; then
continue continue
fi fi
...@@ -79,6 +79,6 @@ function core_parse_project_config() { ...@@ -79,6 +79,6 @@ function core_parse_project_config() {
value="${line#*=}" value="${line#*=}"
value="${value# }" value="${value# }"
eval "declare -gx CONF_${conf~~}='$value'" eval 'declare -gx CONF_'${conf~~}'='"$value"
done <"$_HEADSTART_PROJECT_CONFIG" done <"$_HEADSTART_PROJECT_CONFIG"
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment