Skip to content
This repository
Browse code

fix package manager order

  • Loading branch information...
commit 1e2f845e906e9290997365661fa6c753e3868702 1 parent 24aad38
authored May 30, 2012

Showing 1 changed file with 9 additions and 7 deletions. Show diff stats Hide diff stats

  1. 16  punani/bin/punani
16  punani/bin/punani
@@ -8,26 +8,28 @@ PKGS="$*"
8 8
 ## find package manager
9 9
 if ! :; then : # dummy case, so the rest has a common format
10 10
 
11  
-elif for PACKER_CMD in yum
  11
+elif for PACKER_CMD in aptitude apt-get
12 12
     do type $PACKER_CMD 2>/dev/null 1>&2 && break; done; then
13 13
   INSTALL_PARAM='-y install'
14 14
   REMOVE_PARAM='-y remove'
15 15
 
16  
-elif for PACKER_CMD in brew
17  
-    do type $PACKER_CMD 2>/dev/null 1>&2 && break; done; then
18  
-  INSTALL_PARAM='install'
19  
-  REMOVE_PARAM='remove'
20  
-
21 16
 elif for PACKER_CMD in bauerbill packer yaourt pacman
22 17
     do type $PACKER_CMD 2>/dev/null 1>&2 && break; done; then
23 18
   INSTALL_PARAM='--noconfirm -S --needed'
24 19
   REMOVE_PARAM='-Rcs'
25 20
 
26  
-elif for PACKER_CMD in aptitude apt-get
  21
+elif for PACKER_CMD in yum
27 22
     do type $PACKER_CMD 2>/dev/null 1>&2 && break; done; then
28 23
   INSTALL_PARAM='-y install'
29 24
   REMOVE_PARAM='-y remove'
30 25
 
  26
+elif for PACKER_CMD in brew
  27
+    do type $PACKER_CMD 2>/dev/null 1>&2 && break; done; then
  28
+  INSTALL_PARAM='install'
  29
+  REMOVE_PARAM='remove'
  30
+
  31
+
  32
+
31 33
 else
32 34
   echo "Error 2: no known package manager found; no punani for you!" >&2
33 35
   exit 23

0 notes on commit 1e2f845

Please sign in to comment.
Something went wrong with that request. Please try again.