]> git.ale.wales Git - dotAle.git/commitdiff
226H5.52952-Starfire
authorTu Puta Madre <chinga@tu.madre>
Wed, 5 Aug 2026 18:42:31 +0000 (12:42 -0600)
committerTu Puta Madre <chinga@tu.madre>
Wed, 5 Aug 2026 18:42:31 +0000 (12:42 -0600)
ale.sh

diff --git a/ale.sh b/ale.sh
index 2c7d57c79bff59dcd11d51a12f7a79c91aa9ca53..73671b9daf9ec2057717688e9f44caa49ec745e9 100755 (executable)
--- a/ale.sh
+++ b/ale.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # Verifica que se ejecute en directorio correcto. Realmente sirve para verificar que exista /git/dotAle/ ya que esta especificada esa direccón en el script. Sé que sería más prudente usar la direccón actual pero daría más pauta a errores inesperados y código más ilegible
 if [ "$PWD" != "/git/dotAle" ]; then
@@ -8,13 +8,13 @@ fi
 
 # Comprobar init
 isVoid=false
-if ! command -v systemctl &> /dev/null; then
+if [[ $(ps -p 1 -o comm=) == "runit" ]]; then
     isVoid=true
 fi
 
 # Main
 echo "#Configuración local" > /home/ale/.$(cat /etc/hostname)rc
-if [ $isVoid ]; then
+if [[ $isVoid == true ]]; then
     ln -sf /git/dotAle/.zshrc /home/ale/.zshrc
     ln -sf /git/dotAle/.gitconfig /home/ale/.gitconfig
     mkdir -p /home/ale/.config