Closed smenzer closed 4 years ago
Can you please verify if the following change works?
DOTMAN_LOGO=$(cat <<- 'LOGO'
_ _
| | | |
__| | ___ | |_ _ __ ___ __ _ _ __
/ _` |/ _ \| __| '_ ` _ \ / _` | '_ \
| (_| | (_) | |_| | | | | | (_| | | | |
\__,_|\___/ \__|_| |_| |_|\__,_|_| |_|
LOGO
)
@Bhupesh-V no that's still causing errors:
$ head -n25 dotman.sh
#!/usr/bin/env bash
# (.dot)file (man)ager
IFS=$'\n'
set +x
VERSION="v0.1.0"
DOTMAN_LOGO=$(cat <<- 'LOGO'
_ _
| | | |
__| | ___ | |_ _ __ ___ __ _ _ __
/ _` |/ _ \| __| '_ ` _ \ / _` | '_ \
| (_| | (_) | |_| | | | | | (_| | | | |
\__,_|\___/ \__|_| |_| |_|\__,_|_| |_|
LOGO
)
# check if tput exists
if ! command -v tput &> /dev/null
then
$ ./dotman.sh
./dotman.sh: line 15: unexpected EOF while looking for matching ``'
./dotman.sh: line 272: syntax error: unexpected end of file
Just realized, the error is occurring due to imbalanced '
& `.
Will probably change the logo in next release
How's this for a change? 😅
DOTMAN_LOGO=$(cat << "LOGO"
┌┬┐┌──┐┌┬┐┌┬┐┌─┐┌┐┌
│││🖖│ │ │││├─┤│││
─┴┘└──┘ ┴ ┴ ┴┴ ┴┘└┘
LOGO
)
Describe the bug A clear and concise description of what the bug is.
To Reproduce Run dotman.sh (see below)
Expected behavior The menu is shown, no errors appear
Desktop (please complete the following information):