fixed autoyadmdir
This commit is contained in:
parent
09d413e308
commit
9e0ad3009c
2 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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:"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue