File: simpletest

package info (click to toggle)
samplv1 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,572 kB
  • sloc: cpp: 20,870; ansic: 106; xml: 59; makefile: 22; sh: 16
file content (19 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

# Execute the command, capture the output and remove empty lines
output=$(samplv1_jack -g -v 2>&1 | grep -v '^$')

# Check the exit status of the command
if [ $? -eq 0 ]; then
    echo "$output"
    echo "The command executed successfully!"
else
    echo "$output"
    echo "The command failed."
    exit 1
fi

# Exit the script
exit 0