Skip to content

Commit 97526a1

Browse files
JohnJohn
authored andcommitted
[fix] code style and tilde expansion
1 parent b51d50e commit 97526a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

asimov

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ fi
3434
# side-effect of speeding up the search.
3535
if [ ! -f "$ASIMOV_SKIP_PATHS_FILE" ]; then
3636
echo "init config file ${ASIMOV_SKIP_PATHS_FILE}"
37-
echo "~/.Trash" >> ${ASIMOV_SKIP_PATHS_FILE}
38-
echo "~/Library" >> ${ASIMOV_SKIP_PATHS_FILE}
37+
echo ".Trash" >> ${ASIMOV_SKIP_PATHS_FILE}
38+
echo "Library" >> ${ASIMOV_SKIP_PATHS_FILE}
3939
fi
4040

4141
ASIMOV_SKIP_PATHS=()
4242
while IFS= read -r line || [[ "$line" ]]; do
43-
ASIMOV_SKIP_PATHS+=("$(eval echo "$line")")
43+
ASIMOV_SKIP_PATHS+=("$(echo ~/"$line")")
4444
done < ${ASIMOV_SKIP_PATHS_FILE}
4545

4646

0 commit comments

Comments
 (0)