This commit is contained in:
TomasM
2017-11-02 16:57:46 -04:00
parent 389c34e7e4
commit 84fe77c2b2
2 changed files with 10 additions and 4 deletions
+8 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash
if [ "$2" = "" ]; then
echo "Usage: $0 [source_directory] [target_file.sb]"
echo "Usage: $0 [source_directory] [target_file.sb] [ -d ]"
exit 1
fi
@@ -16,4 +16,10 @@ if [ -e "$2" ]; then
exit 3
fi
mksquashfs "$1" "$2" -comp xz -b 512K -keep-as-directory
if [ "$3" = "-d" ]; then
KEEP="-keep-as-directory"
else
KEEP=""
fi
mksquashfs "$1" "$2" -comp xz -b 512K $KEEP