aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-08 01:26:51 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-08 01:26:51 +0000
commitd2b32c863175524692874232fd6bc3632825db6e (patch)
treee426606a1e6397f6684ce80a9c8870e53528263f /trunk/lib
parent38fdff1d0b0f92493506f2106b1735d02a69658c (diff)
downloadsimplepkg-d2b32c863175524692874232fd6bc3632825db6e.tar.gz
simplepkg-d2b32c863175524692874232fd6bc3632825db6e.tar.bz2
bugfixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@321 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib')
-rw-r--r--trunk/lib/common.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index e54ba95..6d1a5ab 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -589,8 +589,8 @@ function gen_patches_filelist {
# generate FILE_LIST
# usage: gen_patches_filelist <folder>
- if [ ! -z "$1" ]; then
- mkdir -p $1
+ if [ ! -z "$1" ] && [ -d "$1" ]; then
+
cwd="`pwd`"
cd $1
for file in `find | grep -e ".tgz$"`; do ls -l $file; done > FILE_LIST
@@ -611,9 +611,8 @@ function gen_packages_txt {
# generate PACKAGES.TXT
# usage: gen_packages_txt <folder>
- if [ ! -z "$1" ]; then
+ if [ ! -z "$1" ] && [ -d "$1" ]; then
- mkdir -p $1
cwd="`pwd`"
cd $1
@@ -637,9 +636,8 @@ function gen_md5_checksums {
# generate CHECKSUMS.md5
# usage: gen_md5_checksums <folder>
- if [ ! -z "$1" ]; then
+ if [ ! -z "$1" ] && [ -d "$1" ]; then
- mkdir -p $1
cwd="`pwd`"
cd $1