Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 30 lines (21 sloc) 521 Bytes
#!/usr/bin/env bash
[[ ! -z "$SUDO_USER" ]] && RUNUSER="$SUDO_USER" || RUNUSER="$LOGNAME"
RUNCMD="sudo -u $RUNUSER"
set -e
# install all dependencies
./scripts/dependencycheck
#
# Update cathook
#
if [ ! -d "./.git" ]; then
$RUNCMD git init
$RUNCMD git remote add origin https://github.com/nullworks/cathook
fi
#
# Set config version for update script
#
$RUNCMD bash -c ". ./scripts/config.shlib; cfg_write ./scripts/updater-preferences version 2"
#
# Build cathook
#
$RUNCMD ./scripts/updater false true
You can’t perform that action at this time.