Skip to content

Commit da1f546

Browse files
authored
Remove symbolicator volume once (#3994)
* Remove sentry-symbolicator only if it exists * Remove unnecessary volume remove force flag
1 parent e1f0033 commit da1f546

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

install/turn-things-off.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@ else
1717
fi
1818
fi
1919

20+
exists_volume() {
21+
$CONTAINER_ENGINE volume inspect $1 >&/dev/null
22+
}
2023
remove_volume() {
21-
remove_command="$CONTAINER_ENGINE volume remove -f"
24+
remove_command="$CONTAINER_ENGINE volume remove"
2225
$remove_command $1
2326
}
2427

25-
echo "Removed $(remove_volume sentry-symbolicator)."
28+
if exists_volume sentry-symbolicator; then
29+
echo "Removed $(remove_volume sentry-symbolicator)."
30+
fi
2631

2732
echo "${_endgroup}"

0 commit comments

Comments
 (0)