Skip to content

Commit

Permalink
refactor: separeta shub script files options from next class checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
filipe1309 committed Jan 23, 2022
1 parent 164b1b1 commit 290a102
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .shub/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ EOF
response=$(echo "$response" | tr '[:upper:]' '[:lower:]') # tolower
if [[ $response =~ ^(yes|y| ) ]] || [[ -z $response ]]; then
echo -e "${GREEN}OK =)${NC}"
else
# Remove shub scripts
rm -rf .shub
rm deploy.sh
fi

# Auto init first new branch based on course type
if is_in_git_repo; then
Expand All @@ -206,10 +211,6 @@ EOF
echo "" >> notes.md
fi
fi
else
# Remove shub scripts
rm -rf .shub
rm deploy.sh
fi

echo "---------------------------------------------"
Expand All @@ -219,7 +220,9 @@ EOF
echo "---------------------------------------------"

# Always remove init script
rm init.sh
if [ -f init.sh ]; then
rm init.sh
fi
else
exit 0;
fi

0 comments on commit 290a102

Please sign in to comment.