This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 檢查是否有參數並處理 --help 選項 | |
if [ $# -ne 1 ]; then | |
echo "參數數量不正確,請使用 --help 參數獲得說明。" | |
exit 1 | |
elif [ "$1" == "--help" ]; then | |
echo "使用說明: $0 <drive_letter>" | |
echo " <drive_letter>: 單個字母參數 (a 到 z 或 A 到 Z)" | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 檢查是否有參數並處理 --help 選項 | |
if [ $# -ne 1 ]; then | |
echo "參數數量不正確,請使用 --help 參數獲得說明。" | |
exit 1 | |
elif [ "$1" == "--help" ]; then | |
echo "使用說明: $0 <drive_letter>" | |
echo " <drive_letter>: 單個字母參數 (a 到 z 或 A 到 Z)" | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "=============Poetry==============" | |
if command -v poetry > /dev/null; then | |
# 其他的可以看~/.cache/pypoetry/cache | |
poetry cache clear PyPI --all | |
poetry cache clear _default_cache --all | |
echo "Poetry's cache cleaned" | |
fi |