Skip to content

Commit

Permalink
[ADD] more error handling in analyze.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCretois committed Jun 30, 2023
1 parent 2acd768 commit 24b2d67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 27 deletions.
16 changes: 8 additions & 8 deletions analyze.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#!/bin/bash

set -euo pipefail
# Get the path variables
INPUT=$1
FOLDER_TO_EXPOSE=$(dirname $INPUT)
FILENAME=$(basename $INPUT)
INPUT="$1"
FOLDER_TO_EXPOSE="$(dirname "$INPUT")"
FILENAME="$(basename "$INPUT")"

# Run the script
docker run \
exec docker run \
--rm \
--gpus all \
-v ./logs:/app/logs \
-v $FOLDER_TO_EXPOSE:/data \
snowmobile \
--input /data/$FILENAME
-v "$FOLDER_TO_EXPOSE":/data \
ghcr.io/ninanor/snowmobile_analyzer:main \
--input /data/"$FILENAME"



# ghcr.io/ninanor/snowmobile_analyzer:main
19 changes: 0 additions & 19 deletions example/SNOWMOBILE_RESULTS/example_audio_ANALYZED.csv

This file was deleted.

0 comments on commit 24b2d67

Please sign in to comment.