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
3cc44a56
Commit
3cc44a56
authored
Mar 23, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: use global CMDSHELL=/bin/sh
parent
c56b7961
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
epm
bin/epm
+1
-0
epm-pack
bin/epm-pack
+1
-1
epm-play
bin/epm-play
+1
-1
epm-sh-functions
bin/epm-sh-functions
+2
-2
No files found.
bin/epm
View file @
3cc44a56
...
...
@@ -20,6 +20,7 @@
PROGDIR
=
$(
dirname
"
$0
"
)
PROGNAME
=
$(
basename
"
$0
"
)
CURDIR
=
"
$(
pwd
)
"
CMDSHELL
=
"/bin/sh"
# TODO: pwd for ./epm and which for epm
[
"
$PROGDIR
"
=
"."
]
&&
PROGDIR
=
"
$CURDIR
"
if
[
"
$0
"
=
"/dev/stdin"
]
||
[
"
$0
"
=
"sh"
]
;
then
...
...
bin/epm-pack
View file @
3cc44a56
...
...
@@ -57,7 +57,7 @@ __epm_pack()
local
bashopt
=
''
[
-n
"
$verbose
"
]
&&
bashopt
=
'-x'
&&
export
EPM_VERBOSE
=
"
$verbose
"
#info "Running $($script --description 2>/dev/null) ..."
docmd
bash
$bashopt
$repackcode
"
$tarname
"
"
$filefortarname
"
||
fatal
docmd
$CMDSHELL
$bashopt
$repackcode
"
$tarname
"
"
$filefortarname
"
||
fatal
returntarname
=
"
$(
cat
"
$filefortarname
"
)
"
||
fatal
"pack script
$repackcode
didn't set tarname"
if
[
-n
"
$download_only
"
]
;
then
...
...
bin/epm-play
View file @
3cc44a56
...
...
@@ -156,7 +156,7 @@ __epm_play_run()
local
bashopt
=
''
[
-n
"
$verbose
"
]
&&
bashopt
=
'-x'
&&
export
EPM_VERBOSE
=
"
$verbose
"
#info "Running $($script --description 2>/dev/null) ..."
docmd
bash
$bashopt
$script
"
$@
"
docmd
$CMDSHELL
$bashopt
$script
"
$@
"
}
__epm_play_list_installed
()
...
...
bin/epm-sh-functions
View file @
3cc44a56
...
...
@@ -291,7 +291,7 @@ clean_store_output()
epm
()
{
if
[
-n
"
$PROGNAME
"
]
;
then
/bin/sh
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
$CMDSHELL
$bashopt
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
else
epm_main
--inscript
"
$@
"
fi
...
...
@@ -301,7 +301,7 @@ epm()
sudoepm
()
{
[
-n
"
$PROGNAME
"
]
||
fatal
"Can't use sudo epm call from the piped script"
sudorun
/bin/sh
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
sudorun
$CMDSHELL
$bashopt
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
}
# Print error message and stop the program
...
...
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