Skip to content

Instantly share code, notes, and snippets.

@arnobroekhof
Created September 3, 2012 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnobroekhof/3608148 to your computer and use it in GitHub Desktop.
Save arnobroekhof/3608148 to your computer and use it in GitHub Desktop.
puppi netinstall extract command
$real_extract_command = $extract_command ? {
'' => $source_filetype ? {
'.tgz' => 'tar -zxf',
'.tar.gz' => 'tar -zxf',
'.gz' => 'tar -zxf',
'.tar.bz2' => 'tar -jxf',
'.tar' => 'tar -xf',
'.zip' => 'unzip',
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment