Files
ssh-scp-deploy/entrypoint.sh
2022-03-22 15:02:57 +00:00

17 lines
336 B
Bash
Executable File

#!/bin/sh
PASSWORD=${INPUT_PASSWORD};
KEY=${INPUT_KEY};
if [ -z "$KEY" ] && [ -z "$PASSWORD" ]; then
echo "🔑 Please provide at least a key or a password...";
exit 0;
fi
if [[ -n "$KEY" ]]; then
echo "🔑 Using key file...";
source /with_key.sh;
else
echo "🔑 Using password...";
source /with_pass.sh;
fi