summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2009-11-12 02:03:29 +0000
committermark <mark>2009-11-12 02:03:29 +0000
commit9d5f2164f8fa50bb44d154078821f9e123e08814 (patch)
treea64b77adac7982f9647c3907bcc2312ef3feba27
parentb2ddca0ce0bafd281a87a3b05cfc94a3c5a7fa9d (diff)
Fix zip password
-rwxr-xr-xFS/bin/freeside-paymentech-download2
-rwxr-xr-xFS/bin/freeside-paymentech-upload2
2 files changed, 2 insertions, 2 deletions
diff --git a/FS/bin/freeside-paymentech-download b/FS/bin/freeside-paymentech-download
index 293db8420..16ac3c23b 100755
--- a/FS/bin/freeside-paymentech-download
+++ b/FS/bin/freeside-paymentech-download
@@ -68,7 +68,7 @@ BATCH: foreach my $filename (@files) {
}
#unzip file
- system('unzip', '-P', '$password', '-q',
+ system('unzip', '-P', $password, '-q',
"$tmpdir/${filename}_resp.zip", '-d', $tmpdir);
if(! -f "$tmpdir/${filename}_resp.xml") {
warn "failed to extract ${filename}_resp.xml from ${filename}_resp.zip\n";
diff --git a/FS/bin/freeside-paymentech-upload b/FS/bin/freeside-paymentech-upload
index 42bd278c1..06bef68be 100755
--- a/FS/bin/freeside-paymentech-upload
+++ b/FS/bin/freeside-paymentech-upload
@@ -63,7 +63,7 @@ foreach my $pay_batch (@batches) {
print OUT $text;
close OUT;
- system('zip', '-P', '$password', '-q', '-j',
+ system('zip', '-P', $password, '-q', '-j',
"$tmpdir/$filename.zip", "$tmpdir/$filename.xml");
die "failed to create zip file\n" if (! -f "$tmpdir/$filename.zip" );