From 43d692dbbcb4dde2ac0a2efddf426af9293eb33c Mon Sep 17 00:00:00 2001 From: cynic Date: Sun, 6 Nov 2022 01:27:24 -0400 Subject: [PATCH] shopt needs to be run using bash --- tools/init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/init.py b/tools/init.py index bfcad9c..4f19903 100644 --- a/tools/init.py +++ b/tools/init.py @@ -26,8 +26,8 @@ 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"]) -subprocess.run("cp -r /var/cathedral/tools/skel/* /etc/skel/", shell=True) +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") # * create new cathedral user subprocess.run(["useradd", "-c", "cathedral", "-M", "cathedral"])