projects
/
snf-image
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff7783b
)
Fix a bug in helper's get_distro function
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 11 Oct 2011 11:47:28 +0000
(14:47 +0300)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 11 Oct 2011 12:31:13 +0000
(15:31 +0300)
snf-image-helper/common.sh
patch
|
blob
|
history
diff --git
a/snf-image-helper/common.sh
b/snf-image-helper/common.sh
index
b1a6813
..
1724361
100644
(file)
--- a/
snf-image-helper/common.sh
+++ b/
snf-image-helper/common.sh
@@
-71,7
+71,7
@@
get_distro() {
if [ -e "$root_dir/etc/debian_version" ]; then
distro="debian"
if [ -e ${root_dir}/etc/lsb-release ]; then
- ID=$(grep $DISTRIB_ID=${root_dir}/etc/lsb-release | cut -d= -f2)
+ ID=$(grep ^DISTRIB_ID= ${root_dir}/etc/lsb-release | cut -d= -f2)
if [ "x$ID" = "xUbuntu" ]; then
distro="ubuntu"
fi