Add list param

This commit is contained in:
Dennis ten Hoove 2023-09-19 20:18:16 +02:00
parent eadb91f4f4
commit 18f1f36488

View file

@ -17,6 +17,7 @@ if [[ ! -n $1 ]]; then
init Initialize Arkanium on a new system
teardown Remove all Arkanium-deploy related files and folders
get-available List available packages in repo
list List all currently deployed images
END
exit 0
fi
@ -188,6 +189,10 @@ get_available () {
}
list_deployed () {
cat $arkanium_dir/tracker
}
# Deploy a new or update an existing deployment
deploy () {
@ -387,3 +392,4 @@ deploy () {
[[ $1 == 'update' ]] && check_for_updates
[[ $1 == 'get-available' ]] && get_available
[[ $1 == 'deploy' ]] && deploy $1 $2 $3
[[ $1 == 'list' ]] && list_deployed