#!/bin/sh
# A shorthand for "guix substitute", for use by the daemon.

if test "x$GUIX_UNINSTALLED" = "x"
then
    prefix="/usr"
    exec_prefix="${prefix}"
    exec "${exec_prefix}/bin/guix" substitute "$@"
else
    exec guix substitute "$@"
fi
