Subj : Re: Backup script tuning To : paulie420 From : MeaTLoTioN Date : Fri Sep 16 2022 10:59:39 On 15 Sep 2022, paulie420 said the following... pa> pa> my first attempt at checking exit codes. Do things l00k right? pa> pa> Well, I've tested and I'm getting err0rs. :/ pa> ./backup.sh: line 6: [: retVal: integer expression expected pa> ./backup.sh: line 12: [: retVal: integer expression expected pa> ./backup.sh: line 18: [: retVal: integer expression expected pa> Also, you're defining use of /bin/bash as your shebang, but using posix if statements. if using bash, if should be; if [[ $var -gt 0 ]]; then if using posix, if should be; if [ $var -gt 0 ]; then Hope this helps. --- |14Best regards, |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N |07ÄÄ |08[|10eml|08] |15ml@erb.pw |07ÄÄ |08[|10web|08] |15www.erb.pw |07ÄÄÄ¿ |07ÄÄ |08[|09fsx|08] |1521:1/158 |07ÄÄ |08[|11tqw|08] |151337:1/101 |07ÂÄÄÙ |07ÄÄ |08[|12rtn|08] |1580:774/81 |07ÄÂ |08[|14fdn|08] |152:250/5 |07ÄÄÄÙ |07ÄÄ |08[|10ark|08] |1510:104/2 |07ÄÙ --- Mystic BBS v1.12 A47 2021/12/13 (Linux/64) * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (1337:1/101) .