[arch-commits] Commit in gnupg/trunk (install)

David Runge dvzrv at gemini.archlinux.org
Thu Jun 9 12:52:47 UTC 2022


    Date: Thursday, June 9, 2022 @ 12:52:47
  Author: dvzrv
Revision: 448044

Replace tabs with spaces.

Modified:
  gnupg/trunk/install

---------+
 install |   42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

Modified: install
===================================================================
--- install	2022-06-09 12:30:11 UTC (rev 448043)
+++ install	2022-06-09 12:52:47 UTC (rev 448044)
@@ -1,31 +1,31 @@
 _global_units() {
-	_units=(dirmngr.socket gpg-agent.socket gpg-agent-{browser,extra,ssh}.socket)
-	_dir=/etc/systemd/user/sockets.target.wants
+  _units=(dirmngr.socket gpg-agent.socket gpg-agent-{browser,extra,ssh}.socket)
+  _dir=/etc/systemd/user/sockets.target.wants
 
-	case $1 in
-		enable)
-			mkdir -p $_dir
-			for _u in "${_units[@]}"; do
-				ln -sf /usr/lib/systemd/user/$_u $_dir/$_u
-			done
-			;;
-		disable)
-			for _u in "${_units[@]}"; do
-				rm -f $_dir/$_u
-			done
-			rmdir -p --ignore-fail-on-non-empty $_dir
-			;;
-	esac
+  case $1 in
+    enable)
+      mkdir -p $_dir
+      for _u in "${_units[@]}"; do
+        ln -sf /usr/lib/systemd/user/$_u $_dir/$_u
+      done
+      ;;
+    disable)
+      for _u in "${_units[@]}"; do
+        rm -f $_dir/$_u
+      done
+      rmdir -p --ignore-fail-on-non-empty $_dir
+      ;;
+  esac
 }
 
 post_install() {
-	# See FS#42798 and FS#47371
-	dirmngr </dev/null &>/dev/null
+  # See FS#42798 and FS#47371
+  dirmngr </dev/null &>/dev/null
 
-	# Let systemd supervise daemons by default
-	_global_units enable
+  # Let systemd supervise daemons by default
+  _global_units enable
 }
 
 pre_remove() {
-	_global_units disable
+  _global_units disable
 }



More information about the arch-commits mailing list