diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-27 20:06:56 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-27 20:06:56 +0000 |
commit | 81c2c0ef6e6223349a07d26f420dcc140f0337de (patch) | |
tree | 7b902fa8d494d216e661d26affac7b2568c26e32 | |
parent | 353fd93a94a3a24c1c9ed24d4c5b696fb008ee35 (diff) | |
download | simplepkg-81c2c0ef6e6223349a07d26f420dcc140f0337de.tar.gz simplepkg-81c2c0ef6e6223349a07d26f420dcc140f0337de.tar.bz2 |
fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@547 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r-- | trunk/lib/common.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 2fc49c9..8ff4eb2 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -778,10 +778,13 @@ function update_md5_checksum { # update CHECKSUMS.md5 # usage: update_md5_checksums <folder> <file> - if [ -z "$2" ] || [ ! -d "$1" ] || [ ! -f "$file" ]; then + if [ -z "$2" ] || [ ! -d "$1" ] || [ ! -f "$1/$2" ]; then return 1 fi + CWD="`pwd`" + cd $1 + if ! echo $2 | grep -q -e "^\.\/"; then # add ./ in front of the file name file="./$1" @@ -802,6 +805,8 @@ function update_md5_checksum { svn_add CHECKSUMS.md5 svn_add CHECKSUMS.md5.gz + cd $CWD + } function gen_meta { |