[misc] fix path
This commit is contained in:
parent
fbb4945ed1
commit
0dc0bb007b
4
bin/br
4
bin/br
|
@ -11,7 +11,7 @@ STR=$2
|
||||||
export COL PAT STR
|
export COL PAT STR
|
||||||
|
|
||||||
echo "$FILES" | while IFS= read -r FILE; do
|
echo "$FILES" | while IFS= read -r FILE; do
|
||||||
bin/fr "$FILE"
|
fr "$FILE"
|
||||||
done | less
|
done | less
|
||||||
|
|
||||||
printf "Are you sure [y/N]? "
|
printf "Are you sure [y/N]? "
|
||||||
|
@ -19,7 +19,7 @@ read -r YN < /dev/tty
|
||||||
if [ "$YN" = 'y' ]; then
|
if [ "$YN" = 'y' ]; then
|
||||||
echo "$FILES" | while IFS= read -r FILE; do
|
echo "$FILES" | while IFS= read -r FILE; do
|
||||||
TMP=$(mktemp)
|
TMP=$(mktemp)
|
||||||
REP=1 bin/fr "$FILE" > "$TMP"
|
REP=1 fr "$FILE" > "$TMP"
|
||||||
mv "$TMP" "$FILE"
|
mv "$TMP" "$FILE"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user