Change directory

This commit is contained in:
Bob Mottram 2015-02-02 21:18:49 +00:00
parent a2ef741834
commit da606c5574
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,8 @@ MINIMUM_LENGTH=6
IMPORT_FILE=
EXPORT_FILE=
CURRENT_DIR=$(pwd)
function get_protocols_from_website {
if [ ! -f $WEBSITES_DIRECTORY/$1 ]; then
return
@ -315,6 +317,8 @@ function interactive_setup {
}
function import_settings {
cd $CURRENT_DIR
if [ ! $IMPORT_FILE ]; then
return
fi
@ -385,6 +389,8 @@ function export_settings {
return
fi
cd $CURRENT_DIR
if [ ! -f $EXPORT_FILE ]; then
if [ "$SSL_PROTOCOLS" ]; then
echo "SSL_PROTOCOLS=$SSL_PROTOCOLS" >> $EXPORT_FILE