"Fossies" - the Fresh Open Source Software Archive

Member "rear-2.5/usr/share/rear/prep/default/050_check_keep_old_output_copy_var.sh" (10 May 2019, 304 Bytes) of package /linux/privat/rear-2.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # align the variables NETFS_KEEP_OLD_BACKUP_COPY and KEEP_OLD_OUTPUT_COPY
    2 [[ ! -z "$KEEP_OLD_OUTPUT_COPY" ]] && return  # if KEEP_OLD_OUTPUT_COPY=y just return
    3 [[ -z "$KEEP_OLD_OUTPUT_COPY" ]] && [[ ! -z "$NETFS_KEEP_OLD_BACKUP_COPY" ]] && \
    4     [[ "$WORKFLOW" = "mkbackup" ]] &&  KEEP_OLD_OUTPUT_COPY=y