Skip to content

Commit

Permalink
fix: enable existing folder verification on automation
Browse files Browse the repository at this point in the history
  • Loading branch information
caneco committed Nov 14, 2020
1 parent 717fad7 commit 7701c43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions new_country.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ country_code=$(ask "Country code?")
country_code=`echo "$country_code" | tr '[:upper:]' '[:lower:]'`
country_path="$current_directory/src/$country_code"

# if [ -d "$current_directory/src/$country_code" ] ; then
# echo "Country folder already exists!"
# $safe_exit 1
# fi
if [ -d "$current_directory/src/$country_code" ] ; then
echo "Country folder already exists!"
$safe_exit 1
fi

country_name=$(ask "Country name?")
echo "Country: $country_name"
Expand Down

0 comments on commit 7701c43

Please sign in to comment.