[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:hardware:arm:slackwarearm_local-mirror-repository [2021/03/15 15:03 (UTC)] – [Preface] corrected text exagahowtos:hardware:arm:slackwarearm_local-mirror-repository [2021/04/02 19:22 (UTC)] (current) – [local-slackwarearm-repo.sh script code] revised script header info exaga
Line 61: Line 61:
 # Create Slackware ARM local repository mirror utility script. # Create Slackware ARM local repository mirror utility script.
 # #
-# local-slackwarearm-repo.sh - SAREPO [v2.0.3]+# local-slackwarearm-repo.sh - SAREPO [v2.0.3] -  13 Mar 2021
 # #
-# Exaga - exaga@fatdog.eu - SARPi Project - 13 Mar 2021+Copyright (c) 2021 Exaga - SARPi Project - sarpi.penthux.net
 # #
 # Version - 08 Mar 2021 [v0.1a] - progenitor # Version - 08 Mar 2021 [v0.1a] - progenitor
Line 233: Line 233:
   cd "${SOURCEDIR}"   cd "${SOURCEDIR}"
   echo "${PETNAM} : verifying ${PRGNAM}.database ..."   echo "${PETNAM} : verifying ${PRGNAM}.database ..."
-  find . -type f ! -name "index.html" -exec ls -la --time-style=full "{}" >> "${TMP_DATA_DB}" \; +  find . -type f ! -name "index.html" -print0 | xargs -0 ls -la --time-style=full >> "${TMP_DATA_DB}"  
-  cmp -s "${TMP_DATA_DB}" "${LOCAL_SAREPO_DB}"   +  cmp -s "${TMP_DATA_DB}" "${LOCAL_SAREPO_DB}" && CMPSTATUS=0 || CMPSTATUS=1 
-  if [[ $-eq 0 ]]; then  +  if [[ $CMPSTATUS -eq 0 ]]; then  
-    log "${PETNAM} : Local repository database is up-to-date ... "+    log "${PETNAM} : Local repository database is up-to-date ..."
   else    else 
     rm -f "${LOCAL_SAREPO_DB}" && mv "${TMP_DATA_DB}" "${LOCAL_SAREPO_DB}" && log "${PETNAM} : [!] Local repository database updated!"     rm -f "${LOCAL_SAREPO_DB}" && mv "${TMP_DATA_DB}" "${LOCAL_SAREPO_DB}" && log "${PETNAM} : [!] Local repository database updated!"
   fi   fi
   log "${PETNAM} : local repository audit complete"     log "${PETNAM} : local repository audit complete"  
-  log "+-----------------------------------------------+"+  log "+-----------------------------------------------+" && echo >> ${LOG_FILE}
   echo "${PETNAM} update complete"   echo "${PETNAM} update complete"
   # Done   # Done
 howtos:hardware:arm:slackwarearm_local-mirror-repository ()