Fix migration of todo.txt-cli component

This commit is contained in:
Nils Winkler
2017-06-06 18:06:26 +02:00
parent fc4ce80329
commit 94e68b96b5
2 changed files with 12 additions and 1 deletions

View File

@@ -175,7 +175,7 @@ _bash-it-migrate() {
# Only process the ones that don't use the new structure
if ! [[ $ff =~ ^[0-9]*$BASH_IT_LOAD_PRIORITY_SEPARATOR.*\.bash$ ]] ; then
# Get the type of component from the extension
typeset single_type=$(echo $ff | awk -F'.' '{print $2}' | 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)
echo "Migrating $single_type $component_name."