Skip to content

Commit

Permalink
Add warning/suggestion for current working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankk2308 committed Sep 17, 2018
1 parent e8382ea commit 178a971
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyosphere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,14 @@ reset() {
begin_execution() {
parse_pyosphere_config
pyosphere_dir="${given_project_path}${pyosphere_dir}"
if [[ ! -f "${pyosphere_config}" ]]
then
echo -e "\nYour project directory is: \n${bold}${given_project_path}${normal}\n"
echo -e "It is recommended to double-check your project directory.\nRunning from your ${bold}home or other high level directory${normal} can be problematic.\n"
input=""
read -p "${bold}Proceed${normal}? [Y/N]: " input
[[ "${input}" != "Y" || "${input}" != "y" ]] && echo "Aborted." && exit
fi
mkdir -p "${pyosphere_dir}"
generate_build
[[ $always_prune_pref == true ]] && prune_build
Expand Down

0 comments on commit 178a971

Please sign in to comment.