contrib/install-system-wide in rvm-1.0.0 vs contrib/install-system-wide in rvm-1.0.1

- old
+ new

@@ -2,11 +2,11 @@ __rvm_system_wide_permissions() { [[ -z "$1" ]] && return 1 chown -R root:"$rvm_group_name" "$1" chmod -R g+w "$1" - [[ -d "$1" ]] && find "$1" -type d | xargs -n1 chmod g+s + [[ -d "$1" ]] && find "$1" -type d -print0 | xargs -n1 -0 chmod g+s } # Require root to install it. if [[ "$(whoami)" != "root" ]]; then echo "Please rerun this installer as root." >&2 @@ -28,11 +28,11 @@ rvm_path="${rvm_path:-"/usr/local/rvm"}" export rvm_selfcontained=0 rvm_group_name="${rvm_group_name:-"rvm"}" -if cat /etc/group | cut -d: -f1 | \grep -q "^${rvm_group_name}$"; then - echo "Group exists, proceeding with installation." +if \grep -q "${rvm_group_name}$" /etc/group ; then + echo "Group '$rvm_group_name' exists, proceeding with installation." else echo "Creating the group '$rvm_group_name'" groupadd -f "$rvm_group_name" fi echo "Adding $(whoami) the '$rvm_group_name'"