graysky2 / anything-sync-daemon

Symlinks and syncs user specified dirs to RAM thus reducing HDD/SDD calls and speeding-up the system.
https://wiki.archlinux.org/index.php/Anything-sync-daemon
MIT License
345 stars 45 forks source link

set -x usage #81

Open nostroff opened 1 year ago

nostroff commented 1 year ago

The file anything-sync-daemon.in is using "set -x" as a toggle switch (to enable command printing and disable command printing). This is not correct: the second "set -x" does not toggle command off. To disable command printing, use the cryptic command "set +o xtrace".

Please consider changing lines 437, 454 and 470 in file anything-sync-daemon from "set -x" to "set +o xtrace".

With these changes, only the rsync command should appear in /var/log/syslog when "DEBUG=1" is not configured in asd.service and asd-resync.service.