Skip to content

Commit 69b3fdb

Browse files
committed
git-import-srpm: Use realpath for paths passed to -c and -s options
This allows to pass relative paths to both command line options. Signed-off-by: Thierry Escande <thierry.escande@vates.tech>
1 parent 6de8371 commit 69b3fdb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎scripts/git-import-srpm‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ function usage() {
4242
while getopts ":c:s:fh" opt; do
4343
case "${opt}" in
4444
c)
45-
CODE_REPO_PATH="${OPTARG}"
45+
CODE_REPO_PATH="$(realpath "${OPTARG}")"
4646
;;
4747
s)
48-
SRPM_REPO_PATH="${OPTARG}"
48+
SRPM_REPO_PATH="$(realpath "${OPTARG}")"
49+
;;
4950
f)
5051
FORCE_IMPORT=1
5152
;;

0 commit comments

Comments
 (0)