tweak init_paper command in run.sh
This commit is contained in:
@@ -13,7 +13,7 @@ init_paper() {
|
||||
local raw="${1:-.}"
|
||||
local name
|
||||
name="$(printf '%s' "$raw" | tr '[:upper:]' '[:lower:]' | tr -d '\\' | tr '[:space:]' '_')"
|
||||
local dest="$SCRIPT_DIR/$name"
|
||||
local dest="$SCRIPT_DIR/papers/$name"
|
||||
if [ -d "$dest" ]; then
|
||||
echo "Error: '$dest' already exists" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user