diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-02-17 12:21:58 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-02-17 18:26:04 +0530 |
commit | 60ed7bde534f23be9e3ee5429f72cf63ac8bfff2 (patch) | |
tree | 315b8237ac46c1f70ce06c19e541e4465a30ec26 /hosts/fscusat/pkgs/archvsync/common.patch | |
parent | cc89fdfae084f7a0e2b0b91b7c88ff5f0e6667cf (diff) |
fscusat/modules/ftpsync: init
Diffstat (limited to 'hosts/fscusat/pkgs/archvsync/common.patch')
-rw-r--r-- | hosts/fscusat/pkgs/archvsync/common.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/hosts/fscusat/pkgs/archvsync/common.patch b/hosts/fscusat/pkgs/archvsync/common.patch new file mode 100644 index 0000000..d101f40 --- /dev/null +++ b/hosts/fscusat/pkgs/archvsync/common.patch @@ -0,0 +1,26 @@ +From 0bb6e03dbbf0bd47f6f8cc42274b8f7fa9fc9262 Mon Sep 17 00:00:00 2001 +From: sinanmohd <sinan@sinanmohd.com> +Date: Sat, 17 Feb 2024 14:31:03 +0530 +Subject: [PATCH] common: fix config location when wrapped + +--- + bin/common | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/bin/common b/bin/common +index 7ac7977..941e77a 100644 +--- a/bin/common ++++ b/bin/common +@@ -332,6 +332,9 @@ search_config() { + # Read config file + read_config() { + local name=$(echo "$1" | sed -e 's/[^A-Za-z0-9._-]/_/g') ++ name="${1%-wrapped.conf}" ++ name="${name#.}.conf" ++ + local config=$(search_config "$name") + if [ "$config" ]; then + . "$config" +-- +2.43.0 + |