# Changelog
+## 2.3.1
+
+### General
+- Bugfix: Unbound variable when no parameters are supplied
+
## 2.3.0
### General
#
# Bash script for creating backups of Nextcloud.
#
-# Version 2.3.0
+# Version 2.3.1
#
# Requirements:
# - pigz (https://zlib.net/pigz/) for using backup compression. If not available, you can use another compression algorithm (e.g. gzip)
set -Eeuo pipefail
# Variables
-backupMainDir=$1
+backupMainDir=${1:-}
if [ -z "$backupMainDir" ]; then
# TODO: The directory where you store the Nextcloud backups (when not specified by args)
#
# Bash script for restoring backups of Nextcloud.
#
-# Version 2.3.0
+# Version 2.3.1
#
# Requirements:
# - pigz (https://zlib.net/pigz/) for using backup compression. If not available, you can use another compression algorithm (e.g. gzip)
set -Eeuo pipefail
# Variables
-restore=$1
-backupMainDir=$2
+restore=${1:-}
+backupMainDir=${2:-}
if [ -z "$backupMainDir" ]; then
# TODO: The directory where you store the Nextcloud backups (when not specified by args)