mirror of
git://slackware.nl/current.git
synced 2024-12-31 10:28:29 +01:00
14f2469b12
patches/packages/dcron-4.5-x86_64-12_slack15.0.txz: Rebuilt. This is a bugfix release. run-parts: skip *.orig files. Thanks to metaed. patches/packages/mozilla-thunderbird-115.8.0-x86_64-1_slack15.0.txz: Upgraded. This release contains security fixes and improvements. For more information, see: https://www.mozilla.org/en-US/thunderbird/115.8.0/releasenotes/ https://www.mozilla.org/en-US/security/advisories/mfsa2024-07/ https://www.cve.org/CVERecord?id=CVE-2024-1546 https://www.cve.org/CVERecord?id=CVE-2024-1547 https://www.cve.org/CVERecord?id=CVE-2024-1548 https://www.cve.org/CVERecord?id=CVE-2024-1549 https://www.cve.org/CVERecord?id=CVE-2024-1550 https://www.cve.org/CVERecord?id=CVE-2024-1551 https://www.cve.org/CVERecord?id=CVE-2024-1552 https://www.cve.org/CVERecord?id=CVE-2024-1553 (* Security fix *)
46 lines
1 KiB
Bash
46 lines
1 KiB
Bash
#!/bin/sh
|
|
# run-parts: Runs all the scripts found in a directory.
|
|
|
|
# keep going when something fails
|
|
set +e
|
|
|
|
if [ $# -lt 1 ]; then
|
|
echo "Usage: run-parts <directory>"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -d $1 ]; then
|
|
echo "Not a directory: $1"
|
|
echo "Usage: run-parts <directory>"
|
|
exit 1
|
|
fi
|
|
|
|
# There are several types of files that we would like to
|
|
# ignore automatically, as they are likely to be backups
|
|
# of other scripts:
|
|
IGNORE_SUFFIXES="~ ^ , .bak .new .orig .rpmsave .rpmorig .rpmnew .swp"
|
|
|
|
# Main loop:
|
|
for SCRIPT in $1/* ; do
|
|
# If this is not a regular file, skip it:
|
|
if [ ! -f $SCRIPT ]; then
|
|
continue
|
|
fi
|
|
# Determine if this file should be skipped by suffix:
|
|
SKIP=false
|
|
for SUFFIX in $IGNORE_SUFFIXES ; do
|
|
if [ ! "$(basename $SCRIPT $SUFFIX)" = "$(basename $SCRIPT)" ]; then
|
|
SKIP=true
|
|
break
|
|
fi
|
|
done
|
|
if [ "$SKIP" = "true" ]; then
|
|
continue
|
|
fi
|
|
# If we've made it this far, then run the script if it's executable:
|
|
if [ -x $SCRIPT ]; then
|
|
$SCRIPT || echo "$SCRIPT failed."
|
|
fi
|
|
done
|
|
|
|
exit 0
|