This repository has been archived on 2020-01-17. You can view files and clone it, but cannot push or open issues or pull requests.
dev-tools/data/load-config

44 lines
498 B
Bash
Executable File

#!/bin/bash
. /usr/bin/dev-mkconfig
. $configFile
while getopts ":c:" option
do
case $option in
c)
codename=$OPTARG
;;
esac
done
OPTIND=1
# Setting default values for undefined variables.
if [ -z "$sshHost" ]
then
sshHost=localhost
fi
if [ -z "$sshUser" ]
then
sshUser=$USER
fi
if [ -z "$sshKeyFile" ]
then
sshKeyFile=$HOME/.ssh/id_rsa
fi
if [ -z "$repoDir" ]
then
repoDir=/var/cache/reprepro
fi
if [ -z "$codename" ]
then
codename=testing
fi
if [ -z "$keep" ]
then
keep=0
fi