Fixed 3AMisms

This commit is contained in:
Logan G 2021-12-29 22:47:33 -07:00
parent 62a82b1088
commit 760bc7d2f6
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -4,8 +4,8 @@ set -e
# Arg parser
while [ ! $# == 0 ]; do
case "$1" in
-o | --output) shift; OUTPUT=$1;;
*)
-o | --output) shift; OUTPUT=$1;;
*)
if [[ -f $1 ]]; then
INPUT=$1
else
@ -26,7 +26,7 @@ done
#################
# Make tempdir
TMPDIR="/tmp/$(echo "$INPUT" | sed 's/\(.*\)\..*/\1/')-$RANDOM"
TMPDIR="/tmp/$(basename "$INPUT" | sed 's/\(.*\)\..*/\1/')-$RANDOM"
mkdir "$TMPDIR"
# Extract camrec file