Use basename instead of sed

pull/224/head
Matt Wismer 2015-01-06 16:50:44 -05:00
parent a9e8f10e35
commit 0c70325542
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ then
THEMES="$BASH_IT/themes/*/*.theme.bash" THEMES="$BASH_IT/themes/*/*.theme.bash"
for theme in $THEMES for theme in $THEMES
do do
BASH_IT_THEME=$(echo $theme | sed "s/\//\n/g" | tail -1 | sed "s/.theme.bash//") BASH_IT_THEME=$(basename -s '.theme.bash' $theme)
echo " echo "
$BASH_IT_THEME" $BASH_IT_THEME"
echo "" | bash --init-file $BASH_IT/bash_it.sh -i echo "" | bash --init-file $BASH_IT/bash_it.sh -i