Unverified Commit 8790b38c authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

Bugfix / typo

Fixing corrupted menu
parent ab7703a4
...@@ -1101,7 +1101,7 @@ function jobs () ...@@ -1101,7 +1101,7 @@ function jobs ()
while read line while read line
do do
STATUS=$([[ -x ${HOME}${line} ]] && echo "on") STATUS=$([[ -x ${HOME}${line} ]] && echo "on")
DESC=$(description "$line") DESC=$(description "$line")
MOTD+=( "$line" "$DESC" "$STATUS") MOTD+=( "$line" "$DESC" "$STATUS")
LINES[ $j ]=$line LINES[ $j ]=$line
...@@ -1109,7 +1109,7 @@ function jobs () ...@@ -1109,7 +1109,7 @@ function jobs ()
done < <(ls -1 $HOME) done < <(ls -1 $HOME)
LISTLENGHT="$(($LIST_CONST+${#MOTD[@]}/2))" LISTLENGHT="$(($LIST_CONST+${#MOTD[@]}/2))"
[[ $LISTLENGHT -lt 9 ]]; LISTLENGHT=9 [[ $LISTLENGHT -lt 9 ]] && LISTLENGHT=9
exec 3>&1 exec 3>&1
selection=$(dialog --backtitle "$BACKTITLE" --title "Toggle motd executing scripts" --clear --cancel-label \ selection=$(dialog --backtitle "$BACKTITLE" --title "Toggle motd executing scripts" --clear --cancel-label \
"Exit" --ok-label "Save" --checklist "\nChoose what you want to enable or disable:\n " \ "Exit" --ok-label "Save" --checklist "\nChoose what you want to enable or disable:\n " \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment