Show the selected theme name

... Instead of using the previous value of `FILENAME_SPACE'
	- Which would be the name of the last theme in the list

* Variables inside '(( ))' don't require $ for expanding

Signed-off-by: Arvindraj <arvindultimate7352@gmail.com>
This commit is contained in:
Arvindraj 2017-08-14 20:40:28 +05:30
parent 7b61649cac
commit 23bb556249
No known key found for this signature in database
GPG Key ID: E7D47D321E26DDBA
1 changed files with 3 additions and 1 deletions

View File

@ -216,8 +216,10 @@ read -p 'Enter OPTION(S) : ' -a OPTION
for OP in "${OPTION[@]}"; do
if (( OP < ARRAYLENGTH )); then
FILENAME="${THEMES[((OP-1))]::-3}"
FILENAME_SPACE="${FILENAME//-/ }"
echo "Theme: ${FILENAME_SPACE^}"
SET_THEME="${THEMES[(($OP-1))]}"
SET_THEME="${THEMES[((OP-1))]}"
set_gogh "${SET_THEME}"
exit 1
else