Skip to content

Commit

Permalink
obs-docker-suppoer: Allow /bin/sh to pass the simplest of uses (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Mar 18, 2022
1 parent 812dad1 commit 53dc42f
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions obs-docker-support
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
################################################################
#
# Enable docker build support in container.
Expand Down Expand Up @@ -30,9 +30,10 @@ LOCAL_APTREPOS_D="/etc/aptrepos_obs_dockersupport.d/"
DATA_DIR=

zypper() {
cmd=
local cmd
# try to find the command
globalopts=()
local globalopts
typeset -a globalopts
while test -n "$1"; do
case $1 in
-*)
Expand Down Expand Up @@ -87,9 +88,10 @@ obs_pkg_mgr() {
}

apt_get() {
cmd=
local cmd
# try to find the command
globalopts=()
local globalopts
typeset -a globalopts
while test -n "$1"; do
case $1 in
-*)
Expand Down Expand Up @@ -121,7 +123,8 @@ apt_get() {

dnf() {
# try to find command
globalopts=()
local globalopts
typeset -a globalopts
while test -n "$1"; do
case $1 in
-*)
Expand Down Expand Up @@ -150,7 +153,8 @@ dnf() {

yum() {
# try to find command
globalopts=()
global globalopts
typeset -a globalopts
while test -n "$1"; do
case $1 in
-*)
Expand Down Expand Up @@ -178,7 +182,8 @@ yum() {
}

curl() {
local cmd=()
local cmd
typeset -a cmd
local oopt
local oname
while test -n "$1" ; do
Expand Down

0 comments on commit 53dc42f

Please sign in to comment.