mirror of
https://github.com/materusPL/nixos-config
synced 2025-06-19 06:56:14 +02:00
scripts: convert: another change of command
This commit is contained in:
parent
afbe226504
commit
c8cbb1f2f9
@ -1,7 +1,9 @@
|
|||||||
#/usr/bin/env bash
|
#/usr/bin/env bash
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
|
||||||
|
CONVERT="$(nix eval nixpkgs\#imagemagick.outPath | tr -d '"')/bin/convert"
|
||||||
convert_cmd () {
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user