Remove riot-web snap pkg
[khome.git] / home / bin / git-description
... / ...
CommitLineData
1#! /bin/sh
2
3set -e
4
5exe="$0"
6cmd="$1"
7remote="$2"
8
9usage() {
10 printf "Usage: %s (push|pull) REMOTE\n" "$exe"
11 exit 1
12}
13
14case "$cmd" in
15 push | pull) ;;
16 *) usage ;;
17esac
18
19case "$remote" in
20 '') usage ;;
21 *) ;;
22esac
23
24file='description'
25remote_url=$(git remote get-url "$remote")
26remote_path="${remote_url}/${file}"
27local_path=".git/${file}"
28
29case "$cmd" in
30 push) scp "$local_path" "$remote_path";;
31 pull) scp "$remote_path" "$local_path";;
32esac
This page took 0.026446 seconds and 4 git commands to generate.