11 lines
118 B
Plaintext
11 lines
118 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
|
||
|
trap 'exit 128' INT
|
||
|
|
||
|
|
||
|
cd "${1:-$(pwd)}" || exit 1
|
||
|
|
||
|
path="$(git rev-parse --show-prefix)"
|
||
|
echo "${path%/}"
|