mirror of
				https://github.com/materusPL/nixos-config
				synced 2025-11-03 22:10:28 +01:00 
			
		
		
		
	scripts: convert: add nix build to ensure path
This commit is contained in:
		
							parent
							
								
									ed1b629386
								
							
						
					
					
						commit
						c5602cebbf
					
				@ -1,6 +1,6 @@
 | 
				
			|||||||
#/usr/bin/env bash
 | 
					#/usr/bin/env bash
 | 
				
			||||||
IFS=$'\n'
 | 
					IFS=$'\n'
 | 
				
			||||||
 | 
					nix build nixpkgs\#imagemagick --no-link
 | 
				
			||||||
CONVERT="$(nix eval nixpkgs\#imagemagick.outPath | tr -d '"')/bin/magick"
 | 
					CONVERT="$(nix eval nixpkgs\#imagemagick.outPath | tr -d '"')/bin/magick"
 | 
				
			||||||
convert_cmd () {
 | 
					convert_cmd () {
 | 
				
			||||||
if  ! command -v magick &> /dev/null; then $CONVERT "$@"; else convert "$@"; fi
 | 
					if  ! command -v magick &> /dev/null; then $CONVERT "$@"; else convert "$@"; fi
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user