Basename -s is platform specific, so use Bash's variable expansion instead.

pull/591/head
Dwight Holman 2015-10-14 16:58:40 -07:00
parent cb4fbd3983
commit 503fc7bede
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@ then
THEMES="$BASH_IT/themes/*/*.theme.bash"
for theme in $THEMES
do
BASH_IT_THEME=$(basename -s '.theme.bash' $theme)
BASH_IT_THEME=${theme%.theme.bash}
BASH_IT_THEME=${BASH_IT_THEME##*/}
echo "
$BASH_IT_THEME"
echo "" | bash --init-file $BASH_IT/bash_it.sh -i