mirror of
https://github.com/endeavouros-team/PKGBUILDS.git
synced 2026-06-13 01:34:36 +00:00
[fetch-iso] remove unnecessary trailing slash from TARGETDIR
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@
|
||||
pkgname=fetch-iso
|
||||
pkgdesc="A special helper tool for the EndeavourOS ISO testers"
|
||||
url="https://github.com/endeavouros-team/PKGBUILDS/raw/master/$pkgname"
|
||||
pkgver=26.4.1
|
||||
pkgver=26.4.2
|
||||
pkgrel=1
|
||||
|
||||
arch=('any')
|
||||
@@ -21,7 +21,7 @@ source=(
|
||||
$url/$pkgname.completion
|
||||
$url/$pkgname-show-all-info
|
||||
)
|
||||
sha512sums=('50718c2e8c73700b51d8c2efc4b9ae7e9c86fa9282226d4f8915c6258142b0fbea376ea415d66371bd40c3bfe55a48d652067c980ad66dbe3728b998218a353b'
|
||||
sha512sums=('d4e93f48de5e4224e4e0ad22b0081b06b729c93559e22f52d9d64d375eb8b865b161bb9ff7917126ea3bc997834a7abcf53972d3fb46151c719a8d5f23a87f32'
|
||||
'5b2897dc51353b33446ddefdae6d312b36da825ac505418aea535eacaeef568b1f024db171668878ed499e532bc0dc654d35633a8a9fe6c77e25b43e7288cfca'
|
||||
'd99fa711c27f4101dbe982ad69b383fe4dc4ebcb96c838155e0750d34f72a37d9586adf095963b13aa265a3cec3d211000e999da8ac1abd3076128b66d0776d6'
|
||||
'8a910e558e460e48e3c2d50bf8d3f1ccd17f4c8fee564e867105937c21806d3e62733611f01effbd8cdcfdf2e03b5852cfe470b21625df518fcbf04cadd9cf9f')
|
||||
|
||||
+5
-1
@@ -183,7 +183,11 @@ ReadConfig() {
|
||||
case "$APP" in
|
||||
curl | wget) getter="$APP" ;;
|
||||
esac
|
||||
[ "$TARGETDIR" ] || DIE2 "TARGETDIR has no value in $configfile2"
|
||||
case "$TARGETDIR" in
|
||||
"") DIE2 "TARGETDIR has no value in $configfile2" ;;
|
||||
"/") ;;
|
||||
*"/") TARGETDIR="${TARGETDIR:: -1}" ;;
|
||||
esac
|
||||
TARGETDIR="${TARGETDIR/\~/$HOME}"
|
||||
[ -d "$TARGETDIR" ] || DIE2 "'$TARGETDIR' does not exist or is not a folder"
|
||||
[ -w "$TARGETDIR" ] || DIE "cannot write to TARGETDIR ($TARGETDIR)"
|
||||
|
||||
Reference in New Issue
Block a user