Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions vimfiles/tools/shell/bash/update-tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
# create tags
echo "Creating Tags..."

if [ ${CUSTOM} = true ]; then
if [[ ${CUSTOM} = true ]]; then
echo " |- move custom ctags to ${TARGET}"
cp "${SOURCE}" "${TARGET}"
else
# choose ctags path first
if [ -f "${DEST}/files" ]; then
if [[ -f "${DEST}/files" ]]; then
FILES="-L ${DEST}/files"
else
FILES="-R ."
Expand All @@ -19,7 +19,7 @@ else
${CTAGS_CMD} -o "${TMP}" ${OPTIONS} "${FILES}"

# replace old file
if [ -f "${TMP}" ]; then
if [[ -f "${TMP}" ]]; then
echo " |- move ${TMP} to ${TARGET}"
mv -f "${TMP}" "${TARGET}"
fi
Expand Down