absolute path
This commit is contained in:
10
install.sh
10
install.sh
@@ -75,11 +75,17 @@ ask_envs() {
|
||||
DISCOVERY="no";
|
||||
else
|
||||
DISCOVERY="yes";
|
||||
echo "Directory of service discovery scripts: (/usr/local/bin/)";
|
||||
echo "Path of service discovery scripts: (/usr/local/bin/)";
|
||||
read -r DISCOVERY_DIR;
|
||||
if [ "$DISCOVERY_DIR" == "" ] ; then
|
||||
DISCOVERY_DIR="/usr/local/bin/"
|
||||
# TODO - abszolut
|
||||
else
|
||||
# while not an absolute path
|
||||
while [ ${DISCOVERY_DIR:0:1} != "/" ]; do
|
||||
echo "The path must be absolute, for example /usr/local/bin/. Please type it again."
|
||||
read -r DISCOVERY_DIR;
|
||||
done
|
||||
|
||||
fi
|
||||
|
||||
echo "Path of the discovery config file: (discovery.conf)";
|
||||
|
Reference in New Issue
Block a user