forked from alnux/aps
14 lines
286 B
Text
14 lines
286 B
Text
|
#!/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
|