Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
rear116.100
avoid_unary_operator_expected_error.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File avoid_unary_operator_expected_error.diff of Package rear116.100
--- usr/share/rear/verify/NETFS/default/07_set_backup_archive.sh.orig 2014-06-06 15:05:15.000000000 +0200 +++ usr/share/rear/verify/NETFS/default/07_set_backup_archive.sh 2014-06-06 15:03:16.000000000 +0200 @@ -10,7 +10,8 @@ case "$TAPE_DEVICE:$scheme" in backuparchive="${opath}/${BACKUP_PROG_ARCHIVE}${BACKUP_PROG_SUFFIX}${BACKUP_PROG_COMPRESS_SUFFIX}" ;; (:*) - if [ $BACKUP_TYPE == "incremental" ]; then + # Having $BACKUP_TYPE in double quotes avoids the error message: "[: ==: unary operator expected" + if [ "$BACKUP_TYPE" == "incremental" ]; then for i in $(ls ${BUILD_DIR}/outputfs/${NETFS_PREFIX}/*.tar.gz); do restorearchive=$i;done if [ $(date +%a) = $FULLBACKUPDAY ]; then Log "It is Full-Backup-Day" --- usr/share/rear/verify/NETFS/default/55_check_backup_archive.sh.orig 2014-06-06 15:05:29.000000000 +0200 +++ usr/share/rear/verify/NETFS/default/55_check_backup_archive.sh 2014-06-06 15:03:57.000000000 +0200 @@ -7,7 +7,8 @@ case $(url_scheme "$BACKUP_URL") in ;; esac -if [ $BACKUP_TYPE == "incremental" ]; then +# Having $BACKUP_TYPE in double quotes avoids the error message: "[: ==: unary operator expected" +if [ "$BACKUP_TYPE" == "incremental" ]; then backuparchive=$restorearchive fi --- usr/share/rear/restore/NETFS/default/40_restore_backup.sh.orig 2014-06-06 15:05:02.000000000 +0200 +++ usr/share/rear/restore/NETFS/default/40_restore_backup.sh 2014-06-06 15:02:03.000000000 +0200 @@ -39,7 +39,8 @@ case "$BACKUP_PROG" in if [ -s $TMP_DIR/restore-exclude-list.txt ] ; then BACKUP_PROG_OPTIONS="$BACKUP_PROG_OPTIONS --exclude-from=$TMP_DIR/restore-exclude-list.txt " fi - if [ $BACKUP_TYPE == "incremental" ]; then + # Having $BACKUP_TYPE in double quotes avoids the error message: "[: ==: unary operator expected" + if [ "$BACKUP_TYPE" == "incremental" ]; then LAST="$restorearchive" BASE=$(dirname "$restorearchive")/$(tar --test-label -f "$restorearchive") if [ "$BASE" == "$LAST" ]; then
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor