[X2Go-Commits] [x2goserver] 16/17: x2goserver/bin/x2goversion: replace historical "egrep" with "grep -E".
git-admin at x2go.org
git-admin at x2go.org
Fri Nov 16 03:47:06 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goserver.
commit 26729b6871bcefb1cacc080560691d7abd2c9250
Author: Mihai Moldovan <ionic at ionic.de>
Date: Fri Nov 16 03:35:03 2018 +0100
x2goserver/bin/x2goversion: replace historical "egrep" with "grep -E".
---
debian/changelog | 1 +
x2goserver/bin/x2goversion | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 31c83a6..b7fcabb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -68,6 +68,7 @@ x2goserver (4.1.0.3-0x2go1) UNRELEASED; urgency=medium
- x2goserver/bin/x2gofeaturelist: more curly braces, quotes etc.
- x2goserver/bin/x2goruncommand: replace historical "egrep" with "grep
-E".
+ - x2goserver/bin/x2goversion: replace historical "egrep" with "grep -E".
* x2goserver.spec:
+ Pull in openSUSE-release manually on OpenSuSE Tumbleweed to work around
a bug.
diff --git a/x2goserver/bin/x2goversion b/x2goserver/bin/x2goversion
index 45d6525..35f012d 100755
--- a/x2goserver/bin/x2goversion
+++ b/x2goserver/bin/x2goversion
@@ -26,7 +26,7 @@ $X2GO_LIB_PATH/x2gosyslog "$0" "info" "$(basename $0) called with options: $@"
X2GO_VERSIONS_BASEPATH="$(dirname $0)/../share/x2go/versions"
get_version() {
- cat "$1" | egrep -v "^#.*" | head -n1 | cut -d" " -f1
+ cat "$1" | grep -Ev "^#.*" | head -n1 | cut -d" " -f1
}
if [ -n "$1" ]; then
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
More information about the x2go-commits
mailing list