#!/bin/bash # Copyright (C) 2019 Ian Kelling # SPDX-License-Identifier: AGPL-3.0-or-later if [ -z "$BASH_VERSION" ]; then echo "error: shell is not bash" >&2; exit 1; fi source /usr/local/lib/err pre="${0##*/}:" m() { printf "$pre %s\n" "$*"; "$@"; } e() { printf "$pre %s\n" "$*"; } err() { echo "[$(date +'%Y-%m-%d %H:%M:%S%z')]: $pre: $*" >&2; } if [[ $EUID == 0 ]]; then err "run as nonroot" exit 1 fi hn=$(hostname -f) /a/bin/buildscripts/rust has_x=false for pkg in xorg wayland; do if dpkg -s -- $pkg |& grep -Fx "Status: install ok installed" &> /dev/null; then has_x=true break fi done if $has_x; then /a/bin/buildscripts/tor-browser /a/bin/buildscripts/misc fi # source /a/bin/distro-setup/path-add-function # export GOPATH=$HOME/go # path-add $GOPATH/bin # path-add /usr/local/go/bin # l /a/bin/buildscripts/go # l go get -u mvdan.cc/fdroidcl