All pastes #974448 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-04-06 20:12 UTC
rendered paste body
#!/bin/bash

# 5MB added to the amount of required disk space to make sure the update(s)
# are not installed if it will result in no space being left after completion.
available=$(df / | tail -1 | awk '{print $3}')
required=$((294126+5120))

#if [ $available -gt $spacereq ]
if [ 10 -gt 4 ]
then
	echo "Yes"
	echo "Works great"
fi