diff options
author | zachir <zachir@librem.one> | 2022-08-14 00:45:56 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2022-08-14 00:45:56 -0500 |
commit | 8e71d9b912ed205c2a3867301f43a1863522121a (patch) | |
tree | 7ae23245c24a4bd04a27e2c5922ed76c2e947aff | |
parent | 2fd61d1a61287e8e1582c74400ecca04adc150bb (diff) |
don't make runit dir if it already exists
-rw-r--r-- | install.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,7 +3,9 @@ installifexists () { if type $1 >/dev/null; then printf "$1 found. Installing service dir to /etc/runit/sv...\n" - sudo cp -rn $1 /etc/runit/sv/ + if ! [ -d "/etc/runit/sv/$1" ]; then + sudo cp -rn $1 /etc/runit/sv/ + fi if [ -n "$(ls -A config/$1)" ]; then printf "and config to /etc...\n" sudo cp -rn config/$1/ /etc/ |