mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-12-25 02:23:01 +00:00
Format
This commit is contained in:
parent
4407899fbb
commit
9c198622ca
2 changed files with 3 additions and 2 deletions
2
kiwi
2
kiwi
|
@ -72,7 +72,7 @@ done
|
|||
if [ -f "./${KIWI_CONF_NAME}" ]; then
|
||||
# determine needed kiwi-config version
|
||||
re_version_line='version\s*:\s*'
|
||||
eval "$(grep -E "${re_version_line}" "./${KIWI_CONF_NAME}" | sed -r 's/'"${re_version_line}"'/KIWI_VERSION=/')"
|
||||
eval "$(grep -E "${re_version_line}" "./${KIWI_CONF_NAME}" | sed -r "s/${re_version_line}/KIWI_VERSION=/")"
|
||||
fi
|
||||
|
||||
# install if kiwi-config not found
|
||||
|
|
|
@ -24,7 +24,8 @@ class Runner:
|
|||
], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
|
||||
except subprocess.CalledProcessError:
|
||||
raise PermissionError("Cannot access docker, please get into the docker group or run as root!")
|
||||
logging.critical("Cannot access docker, please get into the docker group or run as root!")
|
||||
quit(1)
|
||||
|
||||
# setup all subcommands
|
||||
for className in subcommands.__all__:
|
||||
|
|
Loading…
Reference in a new issue