From 8030fe5f57845d5c0aeb5e9b72635a49e964e70d Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 30 Apr 2013 13:36:15 -0700 Subject: [PATCH] Fix relative paths in zips Introduced in #9 --- lib/abusetheforce/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/abusetheforce/cli.rb b/lib/abusetheforce/cli.rb index 5782ccd..5dd0d17 100644 --- a/lib/abusetheforce/cli.rb +++ b/lib/abusetheforce/cli.rb @@ -175,7 +175,7 @@ module AbuseTheForce eos # Compress the resource - `zip -r #{zip_path} #{resource_path}` + `cd $(dirname "#{resource_path}") && zip -r #{zip_path} #{resource_name}` # Write the meta.xml File.open(zip_path + '-meta.xml', 'w') {|f| f.write(static_resource_xml) }