From 7c3e2342f9337c197cf069d4250ca743d351f939 Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Tue, 12 May 2020 09:22:14 +0800 Subject: [PATCH] Specify group permissions for comfortable-swipe-buffer --- install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install b/install index 10caf51..aa14c59 100755 --- a/install +++ b/install @@ -101,7 +101,8 @@ function install_main_program { if [[ -f "$TARGET" ]]; then trysudo rm "$TARGET" fi - trysudo sed -E "s/^VERSION=.*/VERSION=$VERSION/" "$SOURCE" > "$TARGET" + trysudo cp "$SOURCE" "$TARGET" + trysudo sed -E "s/^VERSION=.*/VERSION=$VERSION/" -i "$TARGET" # allow execute permissions with group trysudo chmod +x "$TARGET" # make sure non-root user is owner