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:"
|
AYE="AutoYADM Error:"
|
||||||
AYM="AutoYADM:"
|
AYM="AutoYADM:"
|
||||||
# We get the absolute path to the script's parent directory.
|
# 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
|
# We check not to overwrite the user's env setting
|
||||||
if [ -z "$AUTOYADMPUSH" ]; then
|
if [ -z "$AUTOYADMPUSH" ]; then
|
||||||
|
@ -34,7 +34,7 @@ fi
|
||||||
yadm add "$path"
|
yadm add "$path"
|
||||||
# If neither file nor dir, something is very wrong!
|
# If neither file nor dir, something is very wrong!
|
||||||
else
|
else
|
||||||
echo "$AYE Target must be a directory or a file!"
|
echo "$AYE Target $path must be a directory or a file!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done) <"$AUTOYADMDIR/tracked"
|
done) <"$AUTOYADMDIR/tracked"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# file, for use by autoyadm.sh
|
# file, for use by autoyadm.sh
|
||||||
|
|
||||||
# We get the absolute path to the script's parent directory.
|
# 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:"
|
AYE="AutoYADM Error:"
|
||||||
AYM="AutoYADM:"
|
AYM="AutoYADM:"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue