Thanks, I changed to /bin/bash and now it's working fine.
Fredrik
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
Brian Dessent wrote:
Fredrik Persson wrote:
All works but for the last for-loop which is responsible for deleting old
backups such that only NUMBKPS=4 of the last backups are stored.
The problem is in 'if [ ${num} -le 0 ]' and 'else num=$((${num}-1))'. It seems
like the num-variable can't be used
Fredrik Persson wrote:
> All works but for the last for-loop which is responsible for deleting old
> backups such that only NUMBKPS=4 of the last backups are stored.
>
> The problem is in 'if [ ${num} -le 0 ]' and 'else num=$((${num}-1))'. It seems
> like the num-variable can't be used as an inte
I have used a very nice backup script i Linux which i now want to use in
cygwin.
--
#!/bin/sh
# for FULL backups
# this backs up the important stuffs listed in ${lists} to ${BKPDIR}
# the lists *should* be in ${BKPDIR} and n
4 matches
Mail list logo