Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
459f4fa4
Commit
459f4fa4
authored
Mar 27, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-prescription: improve list
parent
b2c4caff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
epm-prescription
bin/epm-prescription
+16
-2
No files found.
bin/epm-prescription
View file @
459f4fa4
...
@@ -48,16 +48,30 @@ local psdir="$CONFIGDIR/prescription.d"
...
@@ -48,16 +48,30 @@ local psdir="$CONFIGDIR/prescription.d"
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
cat
<<
EOF
cat
<<
EOF
Options:
Options:
receipt
- run receipt
<receipt>
- run receipt
--list-all - list all available receipts
--list-all - list all available receipts
EOF
EOF
exit
exit
fi
fi
[
"
$(
$DISTRVENDOR
-a
)
"
=
"x86_64"
]
&&
IGNOREi586
=
''
||
IGNOREi586
=
1
if
[
"
$1
"
==
"--list-all"
]
||
[
-z
"
$*
"
]
;
then
if
[
"
$1
"
==
"--list-all"
]
||
[
-z
"
$*
"
]
;
then
if
[
-n
"
$short
"
]
;
then
for
i
in
$psdir
/
*
.sh
;
do
local
name
=
$(
basename
$i
.sh
)
[
-n
"
$IGNOREi586
"
]
&&
rhas
"
$name
"
"^i586-"
&&
continue
rhas
"
$name
"
"^common"
&&
continue
echo
"
$name
"
done
exit
fi
echo
"Run with a name of a prescription to run:"
echo
"Run with a name of a prescription to run:"
for
i
in
$psdir
/
*
.sh
;
do
for
i
in
$psdir
/
*
.sh
;
do
printf
" %-20s - %s
\n
"
"
$(
basename
$i
.sh
)
"
"
$(
$i
--description
2>/dev/null
)
"
local
name
=
$(
basename
$i
.sh
)
[
-n
"
$IGNOREi586
"
]
&&
rhas
"
$name
"
"^i586-"
&&
continue
rhas
"
$name
"
"^common"
&&
continue
printf
" %-20s - %s
\n
"
"
$name
"
"
$(
$i
--description
2>/dev/null
)
"
done
done
echo
echo
exit
exit
...
...
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