Added more environment variables and dmg script

This commit is contained in:
2021-12-30 10:40:47 -05:00
parent 0623aad631
commit 6404ce4bb8
3 changed files with 32 additions and 5 deletions

15
scripts/.local/scripts/dmg Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
# Creates an encrypted disk image from a folder
from="$1"
to="$2"
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Usage: dmg <fromdir> <todir>"
echo ""
exit 1
fi
name="$(isosec).dmg"
hdiutil create -encryption AES-256 -srcfolder "$from" "$to/$name"