Skip to content

Commit

Permalink
Update unarchive
Browse files Browse the repository at this point in the history
Modified argument order provided to unzip command as the -o was being interpreted as a file.
  • Loading branch information
greenbrian committed Nov 25, 2013
1 parent 41e83d9 commit d80eb4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/files/unarchive
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class _zipfile(object):
return dict(bool = False)

def unarchive(self):
cmd = 'unzip "%s" -d "%s" -o' % (self.src,self.dest)
cmd = 'unzip -o "%s" -d "%s"' % (self.src,self.dest)
rc, out, err = self.module.run_command(cmd)
return dict(cmd = cmd, rc=rc, out=out, err=err)

Expand Down

0 comments on commit d80eb4a

Please sign in to comment.