Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjs <js-gajim@webkeks.org>2008-08-14 23:17:53 +0400
committerjs <js-gajim@webkeks.org>2008-08-14 23:17:53 +0400
commit7944990a1b8b107e5c76831cd66ceed23d7c314d (patch)
tree605d22ca53d217b2022432e52c363b30fa8a4617 /scripts
parent8043bb9fb2d7d637a857092962c030d97e384708 (diff)
Fully POSIX-compliant shell scripts.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gajim-remote.in3
-rw-r--r--scripts/gajim.in3
2 files changed, 4 insertions, 2 deletions
diff --git a/scripts/gajim-remote.in b/scripts/gajim-remote.in
index f107fe428..8d771a1c6 100644
--- a/scripts/gajim-remote.in
+++ b/scripts/gajim-remote.in
@@ -24,8 +24,9 @@
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
-if [ `id -u` -eq 0 ]; then
+if test $(id -u) -eq 0; then
echo "You must not launch gajim-remote as root, it is INSECURE"
+ exit 1
fi
datadir=@DATADIR@
diff --git a/scripts/gajim.in b/scripts/gajim.in
index 29e726373..a627ce637 100644
--- a/scripts/gajim.in
+++ b/scripts/gajim.in
@@ -23,8 +23,9 @@
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
-if [ `id -u` -eq 0 ]; then
+if test $(id -u) -eq 0; then
echo "You must not launch Gajim as root, it is INSECURE"
+ exit 1
fi
datadir=@DATADIR@