Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wy580477 committed Dec 16, 2022
1 parent cd2858b commit 8591868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions content/qbittorclone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ DEFINITION_PATH() {
QBIT_DRIVE_DIR="$(grep ^qbit-drive-dir /mnt/data/config/script.conf | cut -d= -f2-)"
FILE_NAME="$(basename "${LOCAL_PATH}")"
FOLDER_NAME="${FILE_NAME}"
MSG_PATH="${LOCAL_PATH}"
FILE_PATH="$(echo ${LOCAL_PATH} | sed 's:[^/]*$::')"
DEST_PATH_SUFFIX="${FILE_PATH#"${DOWNLOAD_DIR%/}"}"
if [[ "${QBIT_DRIVE_DIR}" =~ :/ ]]; then
Expand Down
2 changes: 1 addition & 1 deletion content/ytdlptorclone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ DEFINITION_PATH() {
YTDLP_DRIVE_DIR="$(grep ^ytdlp-drive-dir /mnt/data/config/script.conf | cut -d= -f2-)"
FILE_PATH=$(echo ${LOCAL_PATH} | sed 's:[^/]*$::')
FILE_NAME=$(basename "${LOCAL_PATH}")
MSG_PATH="${FILE_PATH}${FILE_NAME}"
MSG_PATH="${LOCAL_PATH}"
FOLDER_NAME="${FILE_NAME}"
mv "${LOCAL_PATH}" "${FILE_PATH}""${FILE_NAME}"
if [[ "${YTDLP_DRIVE_DIR}" =~ :/ ]]; then
Expand Down

0 comments on commit 8591868

Please sign in to comment.