Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scripts/skype-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ cleanup_stopped_skype_instances(){
image="$(${SUDO} docker inspect -f {{.Config.Image}} ${c})"
if [ "${image}" == "sameersbn/skype:latest" ]; then
running=$(${SUDO} docker inspect -f {{.State.Running}} ${c})
if [ "${running}" != "true" ]; then
${SUDO} docker rm "${c}" >/dev/null
if [ "${running}" = "true" ]; then
${SUDO} docker stop "${c}" >/dev/null
fi
${SUDO} docker rm "${c}" >/dev/null
fi
done
}
Expand Down