bashrc: &bashrc !join_path [!get_default "{home}", .bashrc] path: &gotool !join_path [!get_default "{goroot}", go/bin/go] dlpath: &dlpath !join_empty ["https://dl.google.com/go/go1.14.7.linux-", !get_default "{arch}", ".tar.gz"] install_commands: - !join ["wget -q", *dlpath, "-O /tmp/go.tar.gz"] - !join [tar -C, !get_default "{goroot}", -xvf /tmp/go.tar.gz] - !join ["bash -c 'if [ ! $(grep $(dirname", *gotool, ")", *bashrc, ") ]; then echo PATH=${PATH}:$(dirname", *gotool, ") >>", *bashrc, "; fi'"] uninstall_commands: - !join [sudo, rm, -r, !join_path [!get_default "{goroot}", go]]