Skip to content

Commit ff4b42e

Browse files
committed
fix: use cat from coreutils
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
1 parent 4ec3521 commit ff4b42e

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

extra/git/hooks.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ let
3939
mkdir -p $out/bin
4040
4141
${lib.concatMapStringsSep "\n" (k: ''
42-
cat <<'WRAPPER' > $out/bin/${k}
42+
${pkgs.coreutils}/bin/cat <<'WRAPPER' > $out/bin/${k}
4343
#!${pkgs.bash}/bin/bash
4444
set -euo pipefail
4545

modules/commands.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ in
179179
help = "prints this menu";
180180
name = "menu";
181181
command = ''
182-
cat <<'DEVSHELL_MENU'
182+
${pkgs.coreutils}/bin/cat <<'DEVSHELL_MENU'
183183
${commandsToMenu config.commands}
184184
DEVSHELL_MENU
185185
'';

modules/devshell.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ let
173173
done
174174
175175
if [[ -n "''${help:-}" ]]; then
176-
cat <<USAGE
176+
${pkgs.coreutils}/bin/cat <<USAGE
177177
Usage: ${cfg.name}
178178
$0 -h | --help # show this help
179179
$0 [--pure] # start a bash sub-shell
@@ -397,7 +397,7 @@ in
397397
{
398398
motd = lib.noDepEntry ''
399399
__devshell-motd() {
400-
cat <<DEVSHELL_PROMPT
400+
${pkgs.coreutils}/bin/cat <<DEVSHELL_PROMPT
401401
${cfg.motd}
402402
DEVSHELL_PROMPT
403403
}

modules/services.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ let
9696
command =
9797
(pkgs.writeShellScript "${gName}-services-stop" ''
9898
if [ -e "$PRJ_DATA_DIR/pids/${gName}.pid" ]; then
99-
pid=$(cat "$PRJ_DATA_DIR/pids/${gName}.pid")
99+
pid=$(${pkgs.coreutils}/bin/cat "$PRJ_DATA_DIR/pids/${gName}.pid")
100100
kill -TERM $pid
101101
rm "$PRJ_DATA_DIR/pids/${gName}.pid"
102102
fi

0 commit comments

Comments
 (0)