mirror of
https://github.com/ViViDboarder/docker-duplicity-cron.git
synced 2024-11-21 21:06:32 +00:00
Fixing opt arguments
This commit is contained in:
parent
69b2ce781d
commit
ccd2cb4145
@ -1,15 +1,19 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
export OPT_ARGUMENTS="$@"
|
# If first arg is bash, we'll just execute directly
|
||||||
|
|
||||||
if [ "$1" == "bash" ]; then
|
if [ "$1" == "bash" ]; then
|
||||||
exec "$@"
|
exec "$@"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If no env variable set, get from command line
|
||||||
|
if [ "$OPT_ARGUMENTS" == "" ]; then
|
||||||
|
export OPT_ARGUMENTS="$@"
|
||||||
|
fi
|
||||||
|
|
||||||
# If key id is provied add arg
|
# If key id is provied add arg
|
||||||
if [ -e "$GPG_KEY_ID" ]; then
|
if [ -e "$GPG_KEY_ID" ]; then
|
||||||
OPT_ARGUMENTS="$OPT_ARGUMENTS --encrypt-sign-key=\"$GPG_KEY_ID\""
|
export OPT_ARGUMENTS="$OPT_ARGUMENTS --encrypt-sign-key=\"$GPG_KEY_ID\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SKIP_ON_START" != "true" ]; then
|
if [ "$SKIP_ON_START" != "true" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user