Use basename instead of sed
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user