parent
4b5b6c44d3
commit
8e3a5dbf47
1 changed files with 4 additions and 4 deletions
8
yadm
8
yadm
|
@ -178,7 +178,7 @@ function alt() {
|
||||||
if [[ ! $glob =~ ^# && ! $glob =~ ^[[:space:]]*$ ]] ; then
|
if [[ ! $glob =~ ^# && ! $glob =~ ^[[:space:]]*$ ]] ; then
|
||||||
# echo "working on ->$glob<-"
|
# echo "working on ->$glob<-"
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
for matching_file in $(eval "$LS_PROGRAM" "$glob" 2>/dev/null); do
|
for matching_file in $(eval "$LS_PROGRAM" -d "$glob" 2>/dev/null); do
|
||||||
ENC_FILES[$index]="$matching_file"
|
ENC_FILES[$index]="$matching_file"
|
||||||
((index++))
|
((index++))
|
||||||
done
|
done
|
||||||
|
@ -447,7 +447,7 @@ function encrypt() {
|
||||||
while IFS='' read -r glob || [ -n "$glob" ]; do
|
while IFS='' read -r glob || [ -n "$glob" ]; do
|
||||||
if [[ ! $glob =~ ^# && ! $glob =~ ^[[:space:]]*$ ]] ; then
|
if [[ ! $glob =~ ^# && ! $glob =~ ^[[:space:]]*$ ]] ; then
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
for matching_file in $(eval "$LS_PROGRAM" "$glob" 2>/dev/null); do
|
for matching_file in $(eval "$LS_PROGRAM" -d "$glob" 2>/dev/null); do
|
||||||
ENC_FILES[$index]="$matching_file"
|
ENC_FILES[$index]="$matching_file"
|
||||||
((index++))
|
((index++))
|
||||||
done
|
done
|
||||||
|
@ -456,7 +456,7 @@ function encrypt() {
|
||||||
|
|
||||||
#; report which files will be encrypted
|
#; report which files will be encrypted
|
||||||
echo "Encrypting the following files:"
|
echo "Encrypting the following files:"
|
||||||
"$LS_PROGRAM" -1 "${ENC_FILES[@]}"
|
"$LS_PROGRAM" -1 -d "${ENC_FILES[@]}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
#; encrypt all files which match the globs
|
#; encrypt all files which match the globs
|
||||||
|
@ -688,7 +688,7 @@ function perms() {
|
||||||
if [ -f "$YADM_ENCRYPT" ] ; then
|
if [ -f "$YADM_ENCRYPT" ] ; then
|
||||||
while IFS='' read -r glob || [ -n "$glob" ]; do
|
while IFS='' read -r glob || [ -n "$glob" ]; do
|
||||||
if [[ ! $glob =~ ^# ]] ; then
|
if [[ ! $glob =~ ^# ]] ; then
|
||||||
GLOBS=("${GLOBS[@]}" $(eval "$LS_PROGRAM" "$glob" 2>/dev/null))
|
GLOBS=("${GLOBS[@]}" $(eval "$LS_PROGRAM" -d "$glob" 2>/dev/null))
|
||||||
fi
|
fi
|
||||||
done < "$YADM_ENCRYPT"
|
done < "$YADM_ENCRYPT"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue