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
4b40a3a5
Commit
4b40a3a5
authored
May 26, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
play.d/common.sh: major clean up
parent
3801cd47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
29 deletions
+30
-29
common.sh
play.d/common.sh
+30
-29
No files found.
play.d/common.sh
View file @
4b40a3a5
...
...
@@ -6,33 +6,34 @@ fatal()
exit
1
}
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
if
[
"
$1
"
=
"--package"
]
;
then
echo
"
$PKGNAME
"
exit
fi
if
[
"
$1
"
=
"--installed"
]
;
then
epm installed
$PKGNAME
exit
fi
if
[
"
$1
"
=
"--description"
]
;
then
echo
"
$DESCRIPTION
"
exit
fi
[
"
$1
"
!=
"--run"
]
&&
[
"
$1
"
!=
"--update"
]
&&
fatal
"Unknown command
$1
"
if
[
"
$1
"
=
"--update"
]
;
then
if
!
epm installed
$PKGNAME
;
then
echo
"Skipping update of
$PKGNAME
(package is not installed)"
exit
fi
fi
case
"
$1
"
in
"--remove"
)
epm remove
$PKGNAME
exit
;;
"--package"
)
echo
"
$PKGNAME
"
exit
;;
"--installed"
)
epm installed
$PKGNAME
exit
;;
"--description"
)
echo
"
$DESCRIPTION
"
exit
;;
"--update"
)
if
!
epm installed
$PKGNAME
;
then
echo
"Skipping update of
$PKGNAME
(package is not installed)"
exit
fi
;;
"--run"
)
# just pass
;;
*
)
fatal
"Unknown command
$1
"
;;
esac
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