fixed autoyadmdir

This commit is contained in:
Daniel Fichtinger 2024-11-10 04:10:29 -05:00
parent 09d413e308
commit 9e0ad3009c
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@
AYE="AutoYADM Error:"
AYM="AutoYADM:"
# We get the absolute path to the script's parent directory.
AUTOYADMDIR="script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
AUTOYADMDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# We check not to overwrite the user's env setting
if [ -z "$AUTOYADMPUSH" ]; then
@ -34,7 +34,7 @@ fi
yadm add "$path"
# If neither file nor dir, something is very wrong!
else
echo "$AYE Target must be a directory or a file!"
echo "$AYE Target $path must be a directory or a file!"
exit 1
fi
done) <"$AUTOYADMDIR/tracked"

View file

@ -5,7 +5,7 @@
# file, for use by autoyadm.sh
# We get the absolute path to the script's parent directory.
AUTOYADMDIR="script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
AUTOYADMDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
AYE="AutoYADM Error:"
AYM="AutoYADM:"