From 23e763e7f75093c3a2ad21c40ce3644984df0098 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 15 May 2018 20:19:55 +0800 Subject: git: remove obsolete git-shell-commands files and vars.conf.j2 --- roles/git/files/git-shell-commands/set-desc | 31 ----------------------------- 1 file changed, 31 deletions(-) delete mode 100644 roles/git/files/git-shell-commands/set-desc (limited to 'roles/git/files/git-shell-commands/set-desc') diff --git a/roles/git/files/git-shell-commands/set-desc b/roles/git/files/git-shell-commands/set-desc deleted file mode 100644 index 3d0a1be..0000000 --- a/roles/git/files/git-shell-commands/set-desc +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# -# ~/git-shell-commands/set-desc -# -# Set the description of an existing Git repository. -# -# Aaron LI -# 2017-08-22 -# - -if [ $# -lt 2 ]; then - echo "Usage: set-desc " - exit 1 -fi - -# Set the project name, adding `.git` extension if missing -project="${1%.[gG][iI][tT]}.git" -shift - -if [ ! -d "${HOME}/${project}" ]; then - echo "ERROR: repository '${project}' not exists!" - exit 2 -fi - -description="$@" -if [ -n "${description}" ]; then - echo "${description}" > ${HOME}/${project}/description -fi - -echo "Set description of Git repository: ${project}" -echo "Description: $(cat ${HOME}/${project}/description)" -- cgit v1.2.2