Commit c56b7961 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: set global CURDIR

parent 24c3b921
...@@ -19,8 +19,9 @@ ...@@ -19,8 +19,9 @@
PROGDIR=$(dirname "$0") PROGDIR=$(dirname "$0")
PROGNAME=$(basename "$0") PROGNAME=$(basename "$0")
CURDIR="$(pwd)"
# TODO: pwd for ./epm and which for epm # TODO: pwd for ./epm and which for epm
[ "$PROGDIR" = "." ] && PROGDIR=$(pwd) [ "$PROGDIR" = "." ] && PROGDIR="$CURDIR"
if [ "$0" = "/dev/stdin" ] || [ "$0" = "sh" ] ; then if [ "$0" = "/dev/stdin" ] || [ "$0" = "sh" ] ; then
PROGDIR="" PROGDIR=""
PROGNAME="" PROGNAME=""
......
...@@ -101,8 +101,6 @@ epm_pack() ...@@ -101,8 +101,6 @@ epm_pack()
local packname="$1" local packname="$1"
local tarname="$2" local tarname="$2"
local CURDIR="$(pwd)"
[ -n "$packname" ] || fatal "run with packname, see --help" [ -n "$packname" ] || fatal "run with packname, see --help"
if is_url "$tarname"; then if is_url "$tarname"; then
......
...@@ -455,7 +455,6 @@ __epm_repack_if_needed() ...@@ -455,7 +455,6 @@ __epm_repack_if_needed()
epm_repack() epm_repack()
{ {
local CURDIR="$(pwd)"
# if possible, it will put pkg_urls into pkg_files and reconstruct pkg_filenames # if possible, it will put pkg_urls into pkg_files and reconstruct pkg_filenames
if [ -n "$pkg_urls" ] ; then if [ -n "$pkg_urls" ] ; then
load_helper epm-download load_helper epm-download
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment