mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
17 lines
474 B
Bash
17 lines
474 B
Bash
_DO_NEWCLIENT_IMAGE=
|
|
_b9_get_newclient_image() {
|
|
if [ ! -z "$_DO_NEWCLIENT_IMAGE" ]; then
|
|
echo $_DO_NEWCLIENT_IMAGE
|
|
return
|
|
fi
|
|
|
|
local RESULT=$(docker build -t newclient --rm $B9_DIR/containers/newclient)
|
|
if [[ $(echo "$RESULT" | tail -n1) =~ Successfully\ built ]]; then
|
|
_DO_NEWCLIENT_IMAGE=$(echo "$RESULT" | tail -n1 | awk '{print $3}')
|
|
echo $_DO_NEWCLIENT_IMAGE
|
|
return
|
|
fi
|
|
|
|
echo $RESULT
|
|
return 1
|
|
} |