diff --git a/packaging/solaris/build_pkg.sh b/packaging/solaris/build_pkg.sh index 29c035a09..124c0cd97 100755 --- a/packaging/solaris/build_pkg.sh +++ b/packaging/solaris/build_pkg.sh @@ -1,4 +1,12 @@ #!/bin/sh +# The build target is Solaris 8. Its /bin/sh is the pre-POSIX Bourne +# shell, which does not support "$(...)": keep the legacy backticks. +# No values in this script are expected to contain spaces: ARCH, START, +# FAKE_ROOT, OUTPUTFILE, PKGNAME and NAME derive from hardcoded constants +# (PKGNAME=SMBrsync, VERSION="2.5.5", NAME=rsync, BASEDIR=/usr/local) or +# single-token commands (`uname -p`, `pwd`), so the unquoted expansions of +# FAKE_ROOT, OUTPUTFILE and PKGNAME are safe here. +# shellcheck disable=SC2006,SC2086,SC2164,SC2103 # Shell script for building Solaris package of rsync # Author: Jens Apel # License: GPL diff --git a/rsync-ssl b/rsync-ssl index 822d9ff84..506ca46ad 100755 --- a/rsync-ssl +++ b/rsync-ssl @@ -29,6 +29,7 @@ function rsync_ssl_run { exec rsync --rsh="'$0' --HELPER" "${@}" } +# shellcheck disable=SC1073,SC1009,SC1056,SC1072,SC2086 function rsync_ssl_helper { if [[ -z "$RSYNC_SSL_TYPE" ]]; then found=$(path_search openssl socat stunnel4 stunnel) || exit 1 diff --git a/rsync-web/backup.txt b/rsync-web/backup.txt index c09fb57d1..479775655 100644 --- a/rsync-web/backup.txt +++ b/rsync-web/backup.txt @@ -21,16 +21,22 @@ export RSYNC_PASSWORD=XXXXXX ######################################################################## +# shellcheck disable=SC2006 BACKUPDIR=`date +%A` OPTS="--force --ignore-errors --delete-excluded --exclude-from=$EXCLUDES --delete --backup --backup-dir=/$BACKUPDIR -a" +# shellcheck disable=SC2086 export PATH=$PATH:/bin:/usr/bin:/usr/local/bin # the following line clears the last weeks incremental directory +# shellcheck disable=SC2086 [ -d $HOME/emptydir ] || mkdir $HOME/emptydir +# shellcheck disable=SC2086 rsync --delete -a $HOME/emptydir/ $BSERVER::$USER/$BACKUPDIR/ +# shellcheck disable=SC2086 rmdir $HOME/emptydir # now the actual transfer +# shellcheck disable=SC2086 rsync $OPTS $BDIR $BSERVER::$USER/current