scripts/src/pn

16 lines
217 B
Plaintext
Raw Normal View History

2020-12-01 14:32:39 +01:00
#!/bin/sh
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
2020-12-01 14:32:39 +01:00
trap 'exit 128' INT
cd "${1:-$(pwd)}" || exit 1
path="$(git rev-parse --show-prefix)"
echo "${path%/}"