diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-11 21:05:56 -0400 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-11 21:05:56 -0400 |
commit | 1c9da2f75a1c6be46c53f359c3f6c60048b933fc (patch) | |
tree | 5ffcf5e74d53edf679cca7485a7b7ba7a439ff34 /desc | |
parent | 76e32cd3267c2036b11e3b7aa68424c4ee4d5296 (diff) |
add desc and customize scripts
Diffstat (limited to 'desc')
-rwxr-xr-x | desc | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +#!/bin/sh + +if [ $# -ne 1 ]; then + echo "usage: desc <name>" + exit 1 +fi + +base_dir="$HOME" +repo="${base_dir}/$1" + +case $repo in + *\.git) + ;; + *) + repo="${repo}.git" + ;; +esac + +if [ ! -d "$repo" ]; then + echo "$repo doesn't exist" + exit 1 +fi + +vi "${repo}/description" |