about summary refs log tree commit diff stats
path: root/home-manager/packages/scripts/apps
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-05-18 12:15:31 +0200
committerSoispha <soispha@vhack.eu>2023-05-18 12:15:31 +0200
commitd590bc814264bdaaa45d6c7a3caabfd552c5a1d8 (patch)
tree1c6336a4ca81f29c21fa82b080c919e4ad56e758 /home-manager/packages/scripts/apps
parentFix(hm/pkgs/scr/con2pdf): Typo (diff)
downloadnixos-config-d590bc814264bdaaa45d6c7a3caabfd552c5a1d8.tar.gz
nixos-config-d590bc814264bdaaa45d6c7a3caabfd552c5a1d8.zip
Fix(hm/pkgs/scr/con2pdf): Actually create output directory
Diffstat (limited to '')
-rwxr-xr-xhome-manager/packages/scripts/apps/con2pdf5
1 files changed, 1 insertions, 4 deletions
diff --git a/home-manager/packages/scripts/apps/con2pdf b/home-manager/packages/scripts/apps/con2pdf
index ae6d06bd..857aa3a6 100755
--- a/home-manager/packages/scripts/apps/con2pdf
+++ b/home-manager/packages/scripts/apps/con2pdf
@@ -65,12 +65,9 @@ scan() {
         fi
     done
 
+    mkdir "$output_directory";
     cd "$output_directory" || die "Bug"
 
-    # mk pdf
-    mkdir pdfs;
-    cd ./pdfs/  || die "Bug"
-
     counter=0;
     while read -r scanned_image_a;do
         if [ "$number_of_pages" -ne 1 ];then