mirror of
https://github.com/materusPL/nixos-config
synced 2026-07-02 04:36:41 +00:00
scripts: convert: another change of command
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user