about summary refs log tree commit diff stats
path: root/home-manager
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home-manager/packages/scripts.nix2
-rwxr-xr-xhome-manager/packages/scripts/apps/con2pdf2
2 files changed, 2 insertions, 2 deletions
diff --git a/home-manager/packages/scripts.nix b/home-manager/packages/scripts.nix
index 4cda9d03..ca377e18 100644
--- a/home-manager/packages/scripts.nix
+++ b/home-manager/packages/scripts.nix
@@ -21,7 +21,7 @@
   con2pdf-scr = write_script {
     name = "con2pdf";
     path = "apps";
-    dependencies = builtins.attrValues {inherit (pkgs) sane-backends imagemagick gawk coreutils fd;};
+    dependencies = builtins.attrValues {inherit (pkgs) sane-backends imagemagick coreutils fd;};
   };
 
   dldragon-scr = write_script {
diff --git a/home-manager/packages/scripts/apps/con2pdf b/home-manager/packages/scripts/apps/con2pdf
index 857aa3a6..2fb59d2d 100755
--- a/home-manager/packages/scripts/apps/con2pdf
+++ b/home-manager/packages/scripts/apps/con2pdf
@@ -86,7 +86,7 @@ scan() {
             convert "$scanned_image_a" -compress jpeg -quality 100 "$name"_"$counter".pdf
         fi
 
-    done < "$(tmp "fd . '$tiff_temp_path' | sort -n | awk -v dir='$tiff_temp_path' '{printf dir/\$0}' ")"
+    done < "$(tmp "fd . '$tiff_temp_path' | sort -n")"
 }
 
 for input in "$@"; do