~ubuntustudio-dev/ubuntustudio-installer/trunk

« back to all changes in this revision

Viewing changes to usr/bin/ubuntustudio-installer

  • Committer: len at ovenwerks
  • Date: 2013-08-14 18:09:05 UTC
  • Revision ID: len@ovenwerks.net-20130814180905-cg3pa6r94liephpx
Added Usage for no arguments on command line.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# how many arguments?
15
15
$numpkgs = @ARGV;
16
16
 
 
17
# print usage if no arguements
 
18
if ($numpkgs == 0) {
 
19
  print STDERR "USAGE:\n        ubuntustudio-installer <packagename> [<packagename>] ... \n";
 
20
    exit 1;
 
21
      }
 
22
 
17
23
# get a string with list of packages
18
24
for ($count = 0; $count < $numpkgs; $count++) {
19
25
  # check if exists while getting description