# File lib/fpm/package/tar.rb, line 49
  def output(output_path)
    output_check(output_path)

    # Write the scripts, too.
    write_scripts

    # Unpack the tarball to the staging path
    args = ["-cf", output_path, "-C", staging_path]
    tar_compression_flag(output_path).tap do |flag|
      args << flag unless flag.nil?
    end
    args << "."

    safesystem("tar", *args)
  end