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
ed9fe999
Commit
ed9fe999
authored
Mar 23, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play anydesk: use common.sh
parent
e8c48eba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
+24
-12
anydesk.sh
prescription.d/anydesk.sh
+2
-12
common.sh
prescription.d/common.sh
+22
-0
No files found.
prescription.d/anydesk.sh
View file @
ed9fe999
#!/bin/sh
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
PKGNAME
=
anydesk
DESCRIPTION
=
"AnyDesk from the official site"
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
.
$(
dirname
$0
)
/common.sh
[
"
$1
"
!=
"--run"
]
&&
echo
"AnyDesk from the official site"
&&
exit
arch
=
$(
$DISTRVENDOR
--distro-arch
)
case
$arch
in
...
...
prescription.d/common.sh
0 → 100755
View file @
ed9fe999
#!/bin/sh
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
if
[
"
$1
"
=
"--installed"
]
;
then
epm installed
$PKGNAME
exit
fi
if
[
-n
"
$DESCRIPTION
"
]
;
then
[
"
$1
"
!=
"--run"
]
&&
echo
"
$DESCRIPTION
"
&&
exit
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