Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Commit e2b6c14

Browse files
author
Rajit Banerjee
committed
Minor cleanup
1 parent bcd6af9 commit e2b6c14

File tree

5 files changed

+9
-14
lines changed

5 files changed

+9
-14
lines changed

merge-pdf

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ try:
4545

4646
# save merged PDF
4747
merger.write(open("merged.pdf", 'wb'))
48-
print(f"\nPDF merge complete! Saved as: merged.pdf\n")
48+
print("\nPDF merge complete! Saved as: merged.pdf\n")
4949

5050
except Exception as e:
5151
print(f"\nError: File could not be processed!\n{filename}")

mkfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ if [[ $* == "" ]]; then
1616
exit 1
1717
fi
1818

19-
mkdir -p $(dirname $1)
20-
touch $1
19+
mkdir -p "$(dirname "$1")"
20+
touch "$1"

path

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@
33
# The usual "echo $PATH" is messy.
44
# Usage: ./path
55

6-
if [[ "$SHELL" == "/bin/zsh" ]]; then
7-
source ~/.zshrc
8-
else
9-
source ~/.bashrc
10-
fi
11-
tr ':' '\n' <<< \"$PATH\" | less
6+
tr ':' '\n' <<< "$PATH" | less

remove-pages

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Removes specified pages from a given PDF file.
1010
### Usage
1111
1212
1. Ensure that you have `pip` installed.
13-
2. Run the script with the PDF file to be processed and the page numbers
13+
2. Run the script with the PDF file to be processed and the page numbers
1414
to be removed (comma separated, no spaces).
1515
```
1616
$ ./remove-pages doc.pdf 1,2,3
@@ -42,10 +42,10 @@ try:
4242

4343
# save modified PDF
4444
writer.write(open("new_doc.pdf", 'wb'))
45-
print(f"\nPage removal complete! Saved as: new_doc.pdf")
45+
print("\nPage removal complete! Saved as: new_doc.pdf")
4646
else:
4747
print_help()
4848

4949
except Exception as e:
50-
print(f"\nError: File could not be processed!")
50+
print("\nError: File could not be processed!")
5151
print(e)

setup-coc-nvim

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ npm install \
1313
coc-spell-checker \
1414
coc-snippets \
1515
coc-explorer \
16-
coc-vimlsp \
1716
coc-highlight \
17+
coc-vimlsp \
1818
coc-java \
1919
coc-jedi \
2020
coc-html \
@@ -27,7 +27,7 @@ npm install \
2727

2828
# https://github.com/neoclide/coc-java/issues/99#issuecomment-663856695
2929
coc_java_data="$extpath/coc-java-data/server"
30-
rm -rf "$coc_java_data/*"
30+
rm -rf "${coc_java_data:?}/*"
3131
jdt_ls="jdt-language-server-0.57.0-202006172108.tar.gz"
3232
wget https://download.eclipse.org/jdtls/milestones/0.57.0/$jdt_ls
3333
tar -xf "$jdt_ls" -C "$coc_java_data"

0 commit comments

Comments
 (0)