Skip to content

Commit c44b1b7

Browse files
committed
fix(bash-it): unset alias grep
to fix "unrecognized option: color=auto" on alpine linux
1 parent dedc337 commit c44b1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ RUN \
2121
git && \
2222
git clone --depth 1 https://github.com/Bash-it/bash-it.git /root/.bash_it && \
2323
/root/.bash_it/install.sh --silent && \
24-
rm -rf /root/.bash_it/.git && \
2524
git clone --depth 1 https://github.com/sstephenson/bats.git /tmp/bats && \
2625
/tmp/bats/install.sh /usr/local && \
2726
echo -e "\n\n# Load bash-completion\n" >> /root/.bashrc && \
2827
echo "[ -f /usr/share/bash-completion/bash_completion ] && source /usr/share/bash-completion/bash_completion" \
2928
>> /root/.bashrc && \
29+
echo "unalias grep" >> /root/.bashrc && \
3030
sed -i -e "s/bin\/ash/bin\/bash/" /etc/passwd # && \
3131
apk del git && \
3232
rm -rf /tmp/*

0 commit comments

Comments
 (0)