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

@@ -1,13 +0,0 @@
#!/usr/bin/env bash
# Verify folder exists, and if it does not, create it.
dir="$1"
[ $# -eq 0 ] && {
echo "Usage: $0 full/path/to/dir/to/create"
exit 1
}
if [ ! -d "$dir" ]; then
mkdir -p "$dir" && exit 0
fi