mirror of
https://github.com/ellysh/bash-programming-from-scratch.git
synced 2026-01-26 07:43:42 +00:00
10 lines
254 B
Bash
10 lines
254 B
Bash
#!/bin/bash
|
|
|
|
bsdtar -cjf ~/photo.tar.bz2 ~/Documents/Photo &&
|
|
echo "bsdtar - OK" > results.txt ||
|
|
{ echo "bsdtar - FAILS" > results.txt ; exit 1 ; }
|
|
|
|
cp -f ~/photo.tar.bz2 /d &&
|
|
echo "cp - OK" >> results.txt ||
|
|
! echo "cp - FAILS" >> results.txt
|