mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
improve diec.sh
This commit is contained in:
parent
dec001baa7
commit
a379cf6112
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
# This assumes file target is last argument!
|
# This assumes file target is last argument!
|
||||||
|
|
||||||
# Build with:
|
# Build with:
|
||||||
# docker build . -t horsicq:diec
|
# sudo docker build . -t horsicq:diec
|
||||||
|
|
||||||
TARGET="${@: -1}" # last argument is target file
|
TARGET="${@: -1}" # last argument is target file
|
||||||
INPUT_DIR=$(cd $(dirname "$TARGET") && pwd -P)
|
INPUT_DIR=$(cd $(dirname "$TARGET") && pwd -P)
|
||||||
|
|
@ -13,7 +13,7 @@ INPUT_FILE=$(basename $TARGET)
|
||||||
|
|
||||||
|
|
||||||
if [ "$#" -eq 0 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
docker run -i horsicq:diec
|
docker run -i horsicq:diec
|
||||||
elif [ "$#" -eq 1 ]; then
|
elif [ "$#" -eq 1 ]; then
|
||||||
docker run --rm --volume "$INPUT_DIR":/input:ro -i horsicq:diec "/input/$INPUT_FILE";
|
docker run --rm --volume "$INPUT_DIR":/input:ro -i horsicq:diec "/input/$INPUT_FILE";
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue