feat(tools): moved x-dc & few others to shared.sh

This commit is contained in:
2023-08-15 12:10:36 +03:00
parent b583b0be83
commit a103fbddbe
4 changed files with 56 additions and 49 deletions

View File

@@ -20,12 +20,6 @@ ssh-docker()
docker exec -it "$@" bash
}
# Create a new directory and enter it
mkd()
{
mkdir -p "$@" && cd "$@" || exit
}
# All the dig info
digga()
{
@@ -64,24 +58,6 @@ scheduler()
done
}
silent()
{
"$@" >&/dev/null
}
ask()
{
while true; do
read -p "$1 ([y]/n) " -r
REPLY=${REPLY:-"y"}
if [[ $REPLY =~ ^[Yy]$ ]]; then
return 1
elif [[ $REPLY =~ ^[Nn]$ ]]; then
return 0
fi
done
}
# Defines default antigen bundles
x-default-antigen-bundles()
{