
#!/bin/bash

#********************************************************************************
# Copyright 2016 IBM
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#********************************************************************************

# Configure extension PATH
SCRIPTDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

# Source git_util sh file
source ${SCRIPTDIR}/git_util.sh

# Get common initialization project
pushd . >/dev/null
cd $SCRIPTDIR
if [[ $IDS_URL == *"stage1"* ]]; then
    git_retry clone -b STAGE1 https://github.com/jparra5/dra_utilities.git utilities
else
    git_retry clone https://github.com/jparra5/dra_utilities.git utilities
fi
popd >/dev/null

# Call common initialization
source $SCRIPTDIR/utilities/init.sh

#!/bin/bash

#********************************************************************************
# Copyright 2016 IBM
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#********************************************************************************

# Configure extension PATH
SCRIPTDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

# Source git_util sh file
source ${SCRIPTDIR}/git_util.sh

# Get common initialization project
pushd . >/dev/null
cd $SCRIPTDIR
if [[ $IDS_URL == *"stage1"* ]]; then
    git_retry clone -b STAGE1 https://github.com/jparra5/dra_utilities.git utilities
else
    git_retry clone https://github.com/jparra5/dra_utilities.git utilities
fi
popd >/dev/null

# Call common initialization
source $SCRIPTDIR/utilities/init.sh
if [[ $IDS_URL == *"stage1"* ]]; then
    debugme echo -e "\nUsing branch: 'STAGE1' of utilities.\n"
else
    debugme echo -e "\nUsing branch: 'master' of utilities.\n"
fi
Print debug to verify if correct branch is cloned.
Print debug to verify if correct branch is cloned.
