Support both enabled formats during migration

pull/1043/head
Nils Winkler 2017-09-15 08:10:14 +02:00
parent fd686cc2ae
commit 591c8a67f3
1 changed files with 2 additions and 1 deletions

View File

@ -188,7 +188,8 @@ _bash-it-migrate() {
# Get the type of component from the extension # Get the type of component from the extension
typeset single_type=$(echo $ff | sed -e 's/.*\.\(.*\)\.bash/\1/g' | sed 's/aliases/alias/g') typeset single_type=$(echo $ff | sed -e 's/.*\.\(.*\)\.bash/\1/g' | sed 's/aliases/alias/g')
typeset component_name=$(echo $ff | cut -d'.' -f1) # Cut off the optional "250---" prefix and the suffix
typeset component_name=$(echo $ff | sed -e 's/[0-9]*[-]*\(.*\)\..*\.bash/\1/g')
echo "Migrating $single_type $component_name." echo "Migrating $single_type $component_name."