fixup gitignore
authorIan Kelling <ian@iankelling.org>
Wed, 18 May 2022 18:20:51 +0000 (14:20 -0400)
committerIan Kelling <ian@iankelling.org>
Wed, 18 May 2022 18:21:57 +0000 (14:21 -0400)
.gitignore
i3-sway/gen

index 718065b690373bb7ecb8a0b3f1e35f033424d278..5239dcb6d849b7a2d1c2dd641596383d5e9f369f 100644 (file)
@@ -1,4 +1,6 @@
 /filesystem/etc/prometheus-export-htpasswd
 # other git repos
 /.emacs.d
-/Arduino
+# generated files
+/subdir_files/.config/i3/config
+/subdir_files/.config/sway/config
index 22a4e476bfc4ff477e404711a94bc8cdbbc2b816..5653547d132decfc46d9414785af64f24104e892 100755 (executable)
@@ -5,5 +5,9 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
 
 x="$(readlink -f -- "${BASH_SOURCE[0]}")"; cd ${x%/*} # directory of this file
 
-cat common.conf sway.conf > /a/bin/distro-setup/subdir_files/.config/sway/config
-cat common.conf i3.conf > /a/bin/distro-setup/subdir_files/.config/i3/config
+dir=/a/bin/distro-setup/subdir_files/.config/sway
+mkdir -p $dir
+cat common.conf sway.conf > $dir/config
+dir=/a/bin/distro-setup/subdir_files/.config/i3
+mkdir -p $dir
+cat common.conf i3.conf > $dir/config