Skip to content

Commit 03a8101

Browse files
Fixing if
1 parent 3d11dc8 commit 03a8101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docker-in-docker/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ case ${ADJUSTED_ID} in
312312
esac
313313

314314
# Swap to legacy iptables for compatibility (Debian only)
315-
if [ "${ADJUSTED_ID}" = "debian" ] type iptables-legacy > /dev/null 2>&1; then
315+
if [ "${ADJUSTED_ID}" = "debian" ] && type iptables-legacy > /dev/null 2>&1; then
316316
update-alternatives --set iptables /usr/sbin/iptables-legacy
317317
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
318318
fi

0 commit comments

Comments
 (0)