summaryrefslogtreecommitdiff
path: root/scripts/repo-add.sh.in
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-12-06 22:29:33 +0100
committerDan McGee <dan@archlinux.org>2011-12-07 10:02:11 -0600
commit0e4946d5593e5968c1d6bca50402eaf7a8620526 (patch)
tree1d4b0f6bfd63e33df10a98d3a98bd8d2f7700ad2 /scripts/repo-add.sh.in
parenta3a75e0a41680283572895165da3fe2505314dec (diff)
downloadpacman-0e4946d5593e5968c1d6bca50402eaf7a8620526.tar.xz
scripts/*: Declare several constant variables read-only
Be more semantically accurate and avoid accidental overwriting of some configuration variables that are considered to be constant. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/repo-add.sh.in')
-rw-r--r--scripts/repo-add.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 914675fd..28339e64 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -25,8 +25,8 @@ shopt -s extglob
export TEXTDOMAIN='pacman-scripts'
export TEXTDOMAINDIR='@localedir@'
-myver='@PACKAGE_VERSION@'
-confdir='@sysconfdir@'
+declare -r myver='@PACKAGE_VERSION@'
+declare -r confdir='@sysconfdir@'
QUIET=0
DELTA=0