Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
612afcd2
Commit
612afcd2
authored
Mar 04, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make: lint a couple of shell scripts we can easily find
(cherry picked from commit
11561ba4
)
parent
813e08d5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Makefile
Makefile
+2
-0
check.sh
src/opnsense/scripts/firmware/check.sh
+0
-2
No files found.
Makefile
View file @
612afcd2
...
...
@@ -168,6 +168,8 @@ plist: force
@
${
MAKE
}
-C
${
.CURDIR
}
/src plist
lint
:
force
find
${
.CURDIR
}
/src
${
.CURDIR
}
/scripts
\
-name
"*.sh"
-type
f
-print0
| xargs
-0
-n1
sh
-n
find
${
.CURDIR
}
/src
${
.CURDIR
}
/lang/dynamic/helpers
\
!
-name
"*.xml"
!
-name
"*.xml.sample"
!
-name
"*.eot"
\
!
-name
"*.svg"
!
-name
"*.woff"
!
-name
"*.woff2"
\
...
...
src/opnsense/scripts/firmware/check.sh
View file @
612afcd2
...
...
@@ -226,6 +226,4 @@ if [ "$pkg_running" == "" ]; then
last_check
=
`
date
`
# Write our json structure to disk
echo
"{
\"
connection
\"
:
\"
$connection
\"
,
\"
repository
\"
:
\"
$repository
\"
,
\"
last_check
\"
:
\"
$last_check
\"
,
\"
updates
\"
:
\"
$updates
\"
,
\"
download_size
\"
:
\"
$download_size
\"
,
\"
extra_space_required
\"
:
\"
$required_space
\"
,
\"
new_packages
\"
:[
$packages_new
],
\"
reinstall_packages
\"
:[
$packages_reinstall
],
\"
upgrade_packages
\"
:[
$packages_upgraded
],
\"
upgrade_needs_reboot
\"
:
\"
$upgrade_needs_reboot
\"
}"
else
# pkg is already running, quitting
fi
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