summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 7ec523c8..51d3971c 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -237,12 +237,12 @@ get_filename() {
case $proto in
git*|hg*|svn*)
- filename=${netfile##*/}
- filename=${filename%%#*}
- # fall-through
- ;;&
- git*)
- filename=${filename%%.git*}
+ filename=${netfile%%#*}
+ filename=${filename%/}
+ filename=${filename##*/}
+ if [[ $proto = git* ]]; then
+ filename=${filename%%.git*}
+ fi
;;
*)
# if it is just an URL, we only keep the last component