aps/altools/repo
2021-08-24 07:32:32 +02:00

13 lines
286 B
Bash

#!/bin/sh
########################################
# Repo, a repository manager for alnux #
########################################
if [ $(whoami) != root ]; then
echo "[E] Run as root!"
kill 2
else
case $1 in
add) git clone https://${3}/${2}.git /var/aps/repos/${2} ;;
esac
fi