summaryrefslogtreecommitdiff
path: root/.scripts/pdfpicconv
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-08-12 07:20:44 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-08-12 07:20:44 +0530
commit937b269967f2ef0ac379cb8cd1d787cc91426d12 (patch)
treeaba6f183e06bf6d0e9e4a56f84dad90977281ba6 /.scripts/pdfpicconv
parentc87e60e7e9f39e33dce2144d8a855f47358b84a2 (diff)
specifying bash for non-posix compliant scripts+correcting other scripts
Diffstat (limited to '.scripts/pdfpicconv')
-rwxr-xr-x.scripts/pdfpicconv2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/pdfpicconv b/.scripts/pdfpicconv
index 8b7a551..4ab432d 100755
--- a/.scripts/pdfpicconv
+++ b/.scripts/pdfpicconv
@@ -1,3 +1,3 @@
#!/bin/sh
output=$(echo $1 | cut -d. -f1)
-pdftoppm -jpeg -r 300 $1 $output.jpg
+pdftoppm -jpeg -r 300 $1 $output && mv $output*.jpg $output.jpg