mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-20 21:33:50 -07:00
Add snap docker support for distro testing
This commit is contained in:
parent
109b847c75
commit
3f3c2cd94b
1 changed files with 9 additions and 0 deletions
|
@ -8,6 +8,15 @@ die() { echo "$*" >&4; exit 1; }
|
||||||
|
|
||||||
[ -e "ShellCheck.cabal" ] || die "ShellCheck.cabal not in this dir"
|
[ -e "ShellCheck.cabal" ] || die "ShellCheck.cabal not in this dir"
|
||||||
|
|
||||||
|
if ( snap list | grep -q docker ) > /dev/null 2>&1
|
||||||
|
then
|
||||||
|
# Snap docker can't mount /tmp in containers
|
||||||
|
echo "You appear to be using Docker from snap. Creating ~/tmp for temp files." >&2
|
||||||
|
echo >&2
|
||||||
|
export TMPDIR="$HOME/tmp"
|
||||||
|
mkdir -p "$TMPDIR"
|
||||||
|
fi
|
||||||
|
|
||||||
[ "$1" = "--run" ] || {
|
[ "$1" = "--run" ] || {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
This script pulls multiple distros via Docker and compiles
|
This script pulls multiple distros via Docker and compiles
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue