aps/altools/repo

14 lines
286 B
Text
Raw Normal View History

2021-08-24 08:32:32 +03:00
#!/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