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
8790b38c
Unverified
Commit
8790b38c
authored
Oct 08, 2018
by
Igor Pečovnik
Committed by
GitHub
Oct 08, 2018
Browse files
Bugfix / typo
Fixing corrupted menu
parent
ab7703a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
8790b38c
...
...
@@ -1101,7 +1101,7 @@ function jobs ()
while
read
line
do
STATUS
=
$(
[[
-x
${
HOME
}${
line
}
]]
&&
echo
"on"
)
STATUS
=
$(
[[
-x
${
HOME
}${
line
}
]]
&&
echo
"on"
)
DESC
=
$(
description
"
$line
"
)
MOTD+
=(
"
$line
"
"
$DESC
"
"
$STATUS
"
)
LINES[
$j
]=
$line
...
...
@@ -1109,7 +1109,7 @@ function jobs ()
done
< <
(
ls
-1
$HOME
)
LISTLENGHT
=
"
$((
$LIST_CONST
+
${#
MOTD
[@]
}
/
2
))
"
[[
$LISTLENGHT
-lt
9
]]
;
LISTLENGHT
=
9
[[
$LISTLENGHT
-lt
9
]]
&&
LISTLENGHT
=
9
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