Skip to content
Snippets Groups Projects
Commit cae18462 authored by HereThereBeDragons's avatar HereThereBeDragons
Browse files

bash string comparison fixes for cvmfs server scripts

parent 2680af92
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ _render_info_file() {
echo ' "last_geodb_update" : "'$modtime'",'
fi
if [ "x${CVMFS_PUBLISH_VERSIONS_IN_META_FILE}" == "xtrue" ]; then
if [ "x${CVMFS_PUBLISH_VERSIONS_IN_META_FILE}" = "xtrue" ]; then
echo ' "cvmfs_version" : "'$(cvmfs_version_string)'",'
echo ' "os_id" : "'$(_os_id)'", '
echo ' "os_version_id" : "'$(_os_version_id)'", '
......
......@@ -757,11 +757,11 @@ _os_etc_release_get_field() {
_os_set_etc_release_filename
local fieldname=$1
if [ "x${fieldname}" == "x" ]; then
if [ "x${fieldname}" = "x" ]; then
die "Internal error: _os_etc_release_get_field expects a field name to search for!"
fi
if [ "x${_CVMFS_OS_RELEASE_FILENAME}" == "x" ]; then
if [ "x${_CVMFS_OS_RELEASE_FILENAME}" = "x" ]; then
# If we are unable to find a proper /etc/os-release file return nothing.
:
else
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment