Fixed 3AMisms
This commit is contained in:
parent
62a82b1088
commit
760bc7d2f6
1 changed files with 3 additions and 3 deletions
|
@ -4,8 +4,8 @@ set -e
|
||||||
# Arg parser
|
# Arg parser
|
||||||
while [ ! $# == 0 ]; do
|
while [ ! $# == 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-o | --output) shift; OUTPUT=$1;;
|
-o | --output) shift; OUTPUT=$1;;
|
||||||
*)
|
*)
|
||||||
if [[ -f $1 ]]; then
|
if [[ -f $1 ]]; then
|
||||||
INPUT=$1
|
INPUT=$1
|
||||||
else
|
else
|
||||||
|
@ -26,7 +26,7 @@ done
|
||||||
#################
|
#################
|
||||||
|
|
||||||
# Make tempdir
|
# Make tempdir
|
||||||
TMPDIR="/tmp/$(echo "$INPUT" | sed 's/\(.*\)\..*/\1/')-$RANDOM"
|
TMPDIR="/tmp/$(basename "$INPUT" | sed 's/\(.*\)\..*/\1/')-$RANDOM"
|
||||||
mkdir "$TMPDIR"
|
mkdir "$TMPDIR"
|
||||||
|
|
||||||
# Extract camrec file
|
# Extract camrec file
|
||||||
|
|
Loading…
Reference in a new issue