diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-08-14 13:03:55 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-08-14 13:03:55 +0800 |
| commit | 723e88f0d94b076e4d9978a95d76b57a7332b730 (patch) | |
| tree | 506b8cd9ebcea1980645e5ad1c627482c4b503c4 /alias | |
| parent | 69c85b80460f8d37e35687cb537f024191726504 (diff) | |
Update
Diffstat (limited to 'alias')
| -rw-r--r-- | alias | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -180,7 +180,7 @@ vp() { | |||
| 180 | post=$(eval $PREFIX find ~/blog/content -name $filename | head -1 | sed 's/\r//') | 180 | post=$(eval $PREFIX find ~/blog/content -name $filename | head -1 | sed 's/\r//') |
| 181 | 181 | ||
| 182 | if [ -z "$post" ]; then | 182 | if [ -z "$post" ]; then |
| 183 | echo 'cd ~/blog && hugo new posts/$filename' | eval ${PREFIX:-sh} | 183 | echo "sh -c 'cd ~/blog && hugo new posts/$filename'" | eval ${PREFIX} |
| 184 | post="~/blog/content/posts/$filename" | 184 | post="~/blog/content/posts/$filename" |
| 185 | fi | 185 | fi |
| 186 | 186 | ||