irongit
dotzsh/install_test.sh
8 lines383 BBourne Again Shell (bash)
1#!/bin/bash
2
3case "$1" in
4"ubuntu") docker run --rm -v "$(pwd):/installer" -w /installer -it ubuntu bash -c "
5 apt update -y && apt install sudo -y && useradd test -p test && usermod -aG sudo test &&
6 su - test" ;;
7"arch") docker run --rm -v "$(pwd):/installer" -w /installer -it arch 'pacman -Syu --noconfirm && pacman -S && pacman -S --noconfirm && useradd test && bash' ;;
8esac