Version, and Release bump, fixed dependency issues
This commit is contained in:
24
comp.sh
Normal file → Executable file
24
comp.sh
Normal file → Executable file
@@ -3,8 +3,30 @@
|
||||
# Usage: comp <folder_to_compress> [output_fildename]
|
||||
|
||||
# Check if input folder is provided
|
||||
|
||||
VERSION="__VERSION__"
|
||||
|
||||
if [[ -z "$1" ]]; then
|
||||
echo "Usage: comp <folder_to_compress> [output_filename]"
|
||||
echo "Usage: comp <folder_or_file_to_compress> [output_file]"
|
||||
echo "comp <options>"
|
||||
exit 1
|
||||
elif [[ "$1" == "-h" || "$1" == "--help" ]]; then
|
||||
echo "Usage:"
|
||||
echo " comp <folder_or_file_to_compress> [output_file]"
|
||||
echo " comp <option>"
|
||||
echo ""
|
||||
echo "Options:"
|
||||
echo " -h --help: Print's this message"
|
||||
echo " -v --version: Ptints the current version"
|
||||
exit 0
|
||||
elif [[ "$1" == "-v" || "$1" == "--version" ]]; then
|
||||
echo "comp version: $VERSION"
|
||||
exit 0
|
||||
elif [[ ! -d "$1" || ! -f "$1" ]]; then
|
||||
echo "Invalid argument '$1'"
|
||||
echo "Usage:"
|
||||
echo " comp <folder_to_compress> [output_file]"
|
||||
echo " comp <option>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user