From 02ee49a5f0517090772c58f1c2797880dc2de383 Mon Sep 17 00:00:00 2001 From: cynic Date: Sun, 6 Nov 2022 01:31:23 -0400 Subject: [PATCH] change shopt in the same execution as the /etc/skel cp --- tools/init.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/init.py b/tools/init.py index 4f19903..0c477d7 100644 --- a/tools/init.py +++ b/tools/init.py @@ -26,8 +26,7 @@ subprocess.run(["mkdir", "/var/cathedral"]) subprocess.run(["git", "clone", "https://github.com/kurisufriend/cathedral", "/var/cathedral"]) # * copy new template files to /etc/skel -subprocess.run("shopt -s dotglob", shell=True, executable="/bin/bash") -subprocess.run("cp -r /var/cathedral/tools/skel/* /etc/skel/", shell=True, executable="/bin/bash") +subprocess.run("shopt -s dotglob && cp -r /var/cathedral/tools/skel/* /etc/skel/", shell=True, executable="/bin/bash") # * create new cathedral user subprocess.run(["useradd", "-c", "cathedral", "-M", "cathedral"])