X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=webi%2Fbootstrap.bash;h=5ddd4fb9b557f65d866564219980c87ad3727034;hb=0749de065d9ada0f53efcf27ac9d1f6655954489;hp=61e196ba62ac9becd3e9d7b5cbd9a4a6a0422184;hpb=77428aa44cea88ef3faa11d384b6fbb44716a496;p=webi-installers%2F.git diff --git a/webi/bootstrap.bash b/webi/bootstrap.bash index 61e196b..5ddd4fb 100644 --- a/webi/bootstrap.bash +++ b/webi/bootstrap.bash @@ -27,15 +27,7 @@ fi my_ext="" set +e -if [ -n "\$(command -v git)" ]; then - my_ext="git,\$my_ext" -fi -if [ -n "\$(command -v tar)" ]; then - my_ext="tar,\$my_ext" -fi -if [ -n "\$(command -v unzip)" ]; then - my_ext="zip,\$my_ext" -fi +# NOTE: the order here is least favorable to most favorable if [ -n "\$(command -v pkgutil)" ]; then my_ext="pkg,\$my_ext" fi @@ -44,6 +36,18 @@ fi # note: could also detect via hdiutil my_ext="dmg,\$my_ext" #fi +if [ -n "\$(command -v git)" ]; then + my_ext="git,\$my_ext" +fi +if [ -n "\$(command -v unzip)" ]; then + my_ext="xz,\$my_ext" +fi +if [ -n "\$(command -v unzip)" ]; then + my_ext="zip,\$my_ext" +fi +if [ -n "\$(command -v tar)" ]; then + my_ext="tar,\$my_ext" +fi my_ext="\$(echo "\$my_ext" | sed 's/,$//')" # nix trailing comma set -e