Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
7484f97b
Commit
7484f97b
authored
Oct 09, 2018
by
Igor Pecovnik
Browse files
Cosmetic bugfix
parent
6038d1ea
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
7484f97b
...
...
@@ -1094,7 +1094,7 @@ function jobs ()
HOME
=
"/etc/update-motd.d/"
MOTD
=()
LINES
=()
LIST_CONST
=
6
LIST_CONST
=
9
j
=
0
DIALOG_CANCEL
=
1
DIALOG_ESC
=
255
...
...
@@ -1108,8 +1108,7 @@ function jobs ()
((
j++
))
done
< <
(
ls
-1
$HOME
)
LISTLENGHT
=
"
$((
$LIST_CONST
+
${#
MOTD
[@]
}
/
2
))
"
[[
$LISTLENGHT
-lt
9
]]
&&
LISTLENGHT
=
9
LISTLENGHT
=
"
$((
$LIST_CONST
+
${#
MOTD
[@]
}
/
3
))
"
exec
3>&1
selection
=
$(
dialog
--backtitle
"
$BACKTITLE
"
--title
"Toggle motd executing scripts"
--clear
--cancel-label
\
"Exit"
--ok-label
"Save"
--checklist
"
\n
Choose what you want to enable or disable:
\n
"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment