Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# USAGE:
# curl -LsSf https://gist.githubusercontent.com/moatom/3d76f5f5eb6807fc564176be7ee3b945/raw/a4e98f08210cd53377e87f178913c66fd0f50f17/bitbucket_ssh_key.sh \
# | bash -s -- <username> <email> <app_password> <ssh_key_label (e.g. device name)>
# ssh -T git@bitbucket.org
# 引数チェック
if [ "$#" -ne 4 ]; then