Ubuntu Pastebin

Paste from adconrad at Thu, 7 Apr 2016 11:21:31 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
(base)adconrad@nosferatu:~/test$ cat foo.sh 
#!/bin/sh

exit 0
(base)adconrad@nosferatu:~/test$ cat bar.sh 
#!/bin/sh

result=0
./foo.sh || result=$?
    if [ $result -ne 0 -a $result -ne 2 ]; then
      echo "mysql_upgrade failed with exit status $result" >&2
      exit 1
    fi
Download as text