mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
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:
parent
7b61649cac
commit
23bb556249
4
gogh.sh
4
gogh.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user