diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-24 07:34:40 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:05 +0100 |
| commit | 32e6d9c217846ec5f6d2da9b773a34c4d1970348 (patch) | |
| tree | a0baa6cae512518f496001e09da937d48b12fe0f /bin | |
| parent | 0425f47ed188df074c9e4c95ca64a7ba6e0b8e88 (diff) | |
| download | live-boot-32e6d9c217846ec5f6d2da9b773a34c4d1970348.tar.gz live-boot-32e6d9c217846ec5f6d2da9b773a34c4d1970348.zip | |
Replacing backticks with POSIX expression.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/live-snapshot | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/live-snapshot b/bin/live-snapshot index 17349fc..989fd3a 100755 --- a/bin/live-snapshot +++ b/bin/live-snapshot @@ -25,7 +25,7 @@ # On Debian systems, the complete text of the GNU General Public License # can be found in /usr/share/common-licenses/GPL-2 file. -PROGRAM="`basename $0`" +PROGRAM="$(basename $0)" VERSION=0.0.1 # Source live conf @@ -150,8 +150,8 @@ Do_snapshot () ;; ext2|ext3) - DU_DIM="`du -ks ${COW} | cut -f1`" - REAL_DIM="`expr ${DU_DIM} + ${DU_DIM} / 20`" # Just 5% more to be sure, need something more sophistcated here... + DU_DIM="$(du -ks ${COW} | cut -f1)" + REAL_DIM="$(expr ${DU_DIM} + ${DU_DIM} / 20)" # Just 5% more to be sure, need something more sophistcated here... genext2fs --size-in-blocks=${REAL_DIM} --reserved-blocks=0 --root="${COW}" "${DEST}" || exit 1 ;; @@ -164,8 +164,8 @@ Do_snapshot () Is_same_mount () { - dir1="`Base_path $1`" - dir2="`Base_path $2`" + dir1="$(Base_path $1)" + dir2="$(Base_path $2)" if [ "${dir1}" = "${dir2}" ] then @@ -179,7 +179,7 @@ Parse_args () { # Parse command line ARGS="$1" - ARGUMENTS="`getopt --longoptions cow:,device:,output,resync-string:,type:,help,usage,version --name=${PROGRAM} --options c:d:o:t:r:,h,u,v --shell sh -- ${ARGS}`" + ARGUMENTS="$(getopt --longoptions cow:,device:,output,resync-string:,type:,help,usage,version --name=${PROGRAM} --options c:d:o:t:r:,h,u,v --shell sh -- ${ARGS})" if [ "$?" != "0" ] then |
