Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
db801460
Unverified
Commit
db801460
authored
3 years ago
by
Matthias Schiffer
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2368 from freifunk-gluon/lint-sh-fixes
lint-sh fixes
parents
1041014c
f32c6836
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/push_pkg.sh
+2
-2
2 additions, 2 deletions
contrib/push_pkg.sh
scripts/lint-sh.sh
+1
-1
1 addition, 1 deletion
scripts/lint-sh.sh
with
3 additions
and
3 deletions
contrib/push_pkg.sh
+
2
−
2
View file @
db801460
...
@@ -48,7 +48,7 @@ shift $(( OPTIND - 1 ))
...
@@ -48,7 +48,7 @@ shift $(( OPTIND - 1 ))
if
[
"
$build_only
"
-eq
0
]
;
then
if
[
"
$build_only
"
-eq
0
]
;
then
remote_info
=
$(
ssh
-p
"
${
ssh_port
}
"
"root@
${
ssh_host
}
"
'
remote_info
=
$(
ssh
-p
"
${
ssh_port
}
"
"root@
${
ssh_host
}
"
'
source /etc/os-release
source /etc/os-release
printf "%s\t%s\n" "$OPENWRT_BOARD" "$OPENWRT_ARCH"
printf "%s\
\
t%s\
\
n" "$OPENWRT_BOARD" "$OPENWRT_ARCH"
'
)
'
)
REMOTE_OPENWRT_BOARD
=
"
$(
echo
"
$remote_info
"
|
cut
-f
1
)
"
REMOTE_OPENWRT_BOARD
=
"
$(
echo
"
$remote_info
"
|
cut
-f
1
)
"
REMOTE_OPENWRT_ARCH
=
"
$(
echo
"
$remote_info
"
|
cut
-f
2
)
"
REMOTE_OPENWRT_ARCH
=
"
$(
echo
"
$remote_info
"
|
cut
-f
2
)
"
...
@@ -92,7 +92,7 @@ while [ $# -gt 0 ]; do
...
@@ -92,7 +92,7 @@ while [ $# -gt 0 ]; do
opkg_packages
=
"
$(
make
TOPDIR
=
"
${
topdir
}
"
-C
"
${
pkgdir
}
"
DUMP
=
1 |
awk
'/^Package: / { print $2 }'
)
"
opkg_packages
=
"
$(
make
TOPDIR
=
"
${
topdir
}
"
-C
"
${
pkgdir
}
"
DUMP
=
1 |
awk
'/^Package: / { print $2 }'
)
"
search_package
()
{
search_package
()
{
find
"
$2
"
-name
"
$1_
*.ipk"
-printf
"
%f
\n
"
find
"
$2
"
-name
"
$1_
*.ipk"
-printf
'
%f\n
'
}
}
make
TOPDIR
=
"
${
topdir
}
"
-C
"
${
pkgdir
}
"
clean
make
TOPDIR
=
"
${
topdir
}
"
-C
"
${
pkgdir
}
"
clean
...
...
This diff is collapsed.
Click to expand it.
scripts/lint-sh.sh
+
1
−
1
View file @
db801460
...
@@ -17,7 +17,7 @@ find package -type f | while read -r file; do
...
@@ -17,7 +17,7 @@ find package -type f | while read -r file; do
is_scriptfile
"
$file
"
||
continue
is_scriptfile
"
$file
"
||
continue
echo
"Checking
$file
"
echo
"Checking
$file
"
shellcheck
-f
gcc
-x
-s
sh
-e
SC2039,SC1091,SC2155,SC2034
"
$file
"
shellcheck
-f
gcc
-x
-s
sh
-e
SC2039,SC1091,SC2155,SC2034
,SC3043,SC3037,SC3057
"
$file
"
done
done
find scripts
-type
f |
while
read
-r
file
;
do
find scripts
-type
f |
while
read
-r
file
;
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment