summaryrefslogtreecommitdiff
path: root/nix/scripts/guix-authenticate.in
diff options
context:
space:
mode:
Diffstat (limited to 'nix/scripts/guix-authenticate.in')
-rw-r--r--nix/scripts/guix-authenticate.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/nix/scripts/guix-authenticate.in b/nix/scripts/guix-authenticate.in
new file mode 100644
index 0000000000..5ce57915f0
--- /dev/null
+++ b/nix/scripts/guix-authenticate.in
@@ -0,0 +1,11 @@
+#!@SHELL@
+# A shorthand for "guix authenticate", for use by the daemon.
+
+if test "x$GUIX_UNINSTALLED" = "x"
+then
+ prefix="@prefix@"
+ exec_prefix="@exec_prefix@"
+ exec "@bindir@/guix" authenticate "$@"
+else
+ exec guix authenticate "$@"
+fi