From c8cbb1f2f967e28cff6efffbdbf3b62b9333f687 Mon Sep 17 00:00:00 2001 From: materus Date: Fri, 12 Jul 2024 11:51:46 +0200 Subject: [PATCH] scripts: convert: another change of command --- extraFiles/scripts/convert_images.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extraFiles/scripts/convert_images.sh b/extraFiles/scripts/convert_images.sh index eca7173..9fdcb4d 100755 --- a/extraFiles/scripts/convert_images.sh +++ b/extraFiles/scripts/convert_images.sh @@ -1,7 +1,9 @@ #/usr/bin/env bash IFS=$'\n' + +CONVERT="$(nix eval nixpkgs\#imagemagick.outPath | tr -d '"')/bin/convert" convert_cmd () { -if ! command -v convert &> /dev/null; then nix shell nixpkgs\#imagemagick -c convert "$@"; else convert "$@"; fi +if ! command -v convert &> /dev/null; then $CONVERT "$@"; else convert "$@"; fi }