~ubuntu-branches/ubuntu/raring/byobu/raring

« back to all changes in this revision

Viewing changes to usr/bin/byobu

  • Committer: Package Import Robot
  • Author(s): Dustin Kirkland
  • Date: 2013-03-12 23:14:29 UTC
  • mfrom: (1.1.186)
  • Revision ID: package-import@ubuntu.com-20130312231429-pkbdznd48t2u4ryb
Tags: 5.35-0ubuntu1
* usr/bin/byobu:
  - these ulimit tests are bash-specific
* usr/lib/byobu/raid:
  - fix degraded raid detection regression

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#    You should have received a copy of the GNU General Public License
18
18
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
 
VERSION=5.34
 
20
VERSION=5.35
21
21
PKG="byobu"
22
22
 
23
23
# All sorts of things go wrong if you don't own your $HOME dir.
64
64
        case "$1" in
65
65
                -v|--version)
66
66
                        echo "$PKG version $VERSION"
67
 
                        if [ -n "$BYOBU_ULIMIT" ]; then
 
67
                        if $BYOBU_TEST bash >/dev/null 2>&1; then
68
68
                                # Check ulimits
69
 
                                [ $($BYOBU_ULIMIT -n) -ge 15 ] || echo "WARNING: ulimit -n is too low" 1>&2
70
 
                                [ $($BYOBU_ULIMIT -u) -ge 1600 ] || echo "WARNING: ulimit -u is too low" 1>&2
 
69
                                [ $(bash -c "ulimit -n") -ge 15 ] || echo "WARNING: ulimit -n is too low" 1>&2
 
70
                                [ $(bash -c "ulimit -u") -ge 1600 ] || echo "WARNING: ulimit -u is too low" 1>&2
71
71
                        fi
72
72
                        exec $BYOBU_BACKEND $BYOBU_ARG_VERSION
73
73
                        exit 0