Compare commits
No commits in common. "ee0e1f5f86abb1a0f740eeddc6f049da8df0ebad" and "3fe63a995f00483ae88ef06ade61c7d57aca631c" have entirely different histories.
ee0e1f5f86
...
3fe63a995f
1 changed files with 1 additions and 12 deletions
11
aps.sh
11
aps.sh
|
@ -4,7 +4,6 @@ AL_TEMP_LOCATION="/tmp"
|
|||
AL_INSTALL_ROOT="/tmp/alroot"
|
||||
AL_INSTALLED_PKG_DATABASE="${AL_INSTALL_ROOT}/var/aps/installed"
|
||||
AL_LOCAL_PKG_DATABASE="${AL_INSTALL_ROOT}/var/aps/repos"
|
||||
AL_LOCK="${AL_INSTALL_ROOT}/var/aps/lock"
|
||||
|
||||
# Repo config
|
||||
official="https://git.hippoz.xyz/alnux/repo"
|
||||
|
@ -193,13 +192,6 @@ upgrade() {
|
|||
}
|
||||
|
||||
main() {
|
||||
if [ -f "${AL_LOCK}" ]; then
|
||||
echo "[E] A lock file already exists."
|
||||
echo " If you're sure no package manager is running,"
|
||||
echo " remove the file ${AL_LOCK}"
|
||||
fi
|
||||
touch "${AL_LOCK}"
|
||||
|
||||
case ${1} in
|
||||
install)
|
||||
install_local_package "${2}"
|
||||
|
@ -220,12 +212,9 @@ main() {
|
|||
;;
|
||||
*)
|
||||
echo "[E] Invalid option ${1}, exiting..."
|
||||
rm "${AL_LOCK}"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
rm "${AL_LOCK}"
|
||||
}
|
||||
|
||||
main "${1}" "${2}"
|
Loading…
Reference in a new issue