Hello, Marek. On Thu, 06 Feb 2025 12:38:38 +0100 Marek Paśnikowski <[email protected]> wrote:
> In return I would like to ask, how should I go about making the `#!/bin/bash` > line > of the bash script dynamic and responsive to the updates of Bash in Guix? I can comment on this one. That line, which is often referred to as a shebang, requires a full path to bash. However, a generic approach for determining it also works on a Guix System. ``` $ type bash bash is /run/current-system/profile/bin/bash ``` That path is a symlink to the current version of bash in the system. You can verify it if you wish. ``` $ ls -l /run/current-system/profile/bin/bash lrwxrwxrwx 1 root root 64 Jan 1 1970 /run/current-system/profile/bin/bash -> /gnu/store/cdwviyfnsfv7k57qrwmym0mrynjixc1i-bash-5.1.16/bin/bash ``` The environment is using a symlink, so the script may use the same symlink as well with the shebang `#!/run/current-system/profile/bin/bash`. This is what I use for a certbot deploy hook on my email server as it expects a shell script. Roman
pgpb6QyeEOKoT.pgp
Description: PGP signature
