Skip to content

Commit

Permalink
clean: fix typos for consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
zchrissirhcz committed Jan 1, 2025
1 parent 3f15ac6 commit d5282c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rocpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ def install_package(recipe: str):
e.g. CLI11/2.3.2
"""

rockpkg_dir = Path('.rockpkg')
rockpkg_dir.mkdir(exist_ok=True)
rocpkg_dir = Path('.rocpkg')
rocpkg_dir.mkdir(exist_ok=True)

pkg_name, pkg_version = recipe.split('/')
install_cmd = f'git clone {PKG_REPO} -b {pkg_name}/{pkg_version} .rockpkg/{pkg_name}-{pkg_version}'
install_cmd = f'git clone {PKG_REPO} -b {pkg_name}/{pkg_version} .rocpkg/{pkg_name}-{pkg_version}'

print(f'[debug] install cmd: {install_cmd}')

Expand All @@ -29,8 +29,8 @@ def install_package(recipe: str):

def main():
if len(sys.argv) < 3:
print('Usage: rockpkg install <包名>/<版本号>')
print('e.g.: rockpkg install CLI11/2.4.2')
print('Usage: rocpkg install <包名>/<版本号>')
print('e.g.: rocpkg install CLI11/2.4.2')
sys.exit(1)

command = sys.argv[1]
Expand Down

0 comments on commit d5282c6

Please sign in to comment.