mirror of
https://github.com/bitdefender/bddisasm.git
synced 2024-11-25 17:08:35 +00:00
22 lines
611 B
Bash
22 lines
611 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
# Check if the -it flag is provided
|
||
|
if [ -t 0 ] && [ -t 1 ]; then
|
||
|
echo "Running in interactive mode"
|
||
|
else
|
||
|
echo "Error: This container requires an interactive shell (-it flag)."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
# Check if the volume directory is present
|
||
|
if [ ! -d "${SHARE_DIR}" ]; then
|
||
|
echo "Warning: Volume directory '${SHARE_DIR}' is missing."
|
||
|
echo "Please use the -v flag to specify a host directory."
|
||
|
echo "For example 'podman run -v /host/path:${SHARE_DIR}'"
|
||
|
echo "You will need to manually copy fuzzing inputs/outputs from/to the host"
|
||
|
fi
|
||
|
|
||
|
# Continue with the original command
|
||
|
exec "$@"
|