Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-checks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Merge requests
!43
remove grep: warning: stray \ before white space
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
remove grep: warning: stray \ before white space
5823-grep-regex-with-spaces
into
master
Overview
0
Commits
1
Pipelines
0
Changes
11
Merged
remove grep: warning: stray \ before white space
Hahn Axel (hahn)
requested to merge
5823-grep-regex-with-spaces
into
master
Oct 21, 2022
Overview
0
Commits
1
Pipelines
0
Changes
11
0
0
Merge request reports
Viewing commit
a4495ab7
Show latest version
11 files
+
28
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
a4495ab7
remove grep: warning: stray \ before white space
· a4495ab7
Hahn Axel (hahn)
authored
Oct 21, 2022
check_packages2install-pkgmanager/apt.sh
+
3
−
2
View file @ a4495ab7
Edit in single-file editor
Open in Web IDE
Show full file
@@ -7,10 +7,11 @@
# included by ../check_packages2install
#
# ---------------------------------------------------------------
# ah <axel.hahn@
iml.
unibe.ch>
# ah <axel.hahn@unibe.ch>
# 2022-06-03 v1.0 ah first version
# 2022-06-07 v1.1 ah remove text "Nothing to install"
# rename functions
# 2022-10-21 v1.3 ah remove grep: warning: stray \ before white space
# ===============================================================
@@ -32,7 +33,7 @@ function apt.getPackageList(){
if
[
$iStart
-gt
0
]
;
then
# show packages = text starting with 2 spaces below start line
# packages are delimited with space -> replace with new line
echo
"
$packagemanOut
"
|
sed
-n
$iStart
,
\$
p |
grep
"^
\ \
"
|
sed
"s#^
\ \
##g"
|
tr
" "
"
\n
"
echo
"
$packagemanOut
"
|
sed
-n
$iStart
,
\$
p |
grep
"^
"
|
sed
"s#^
\ \
##g"
|
tr
" "
"
\n
"
fi
}
Loading