This commit is contained in:
2019-01-10 12:09:22 +01:00
parent 08a7d276c5
commit c15ef1bab5
9 changed files with 547 additions and 44 deletions

0
beispiele/4/mysystem.sh Normal file → Executable file
View File

Binary file not shown.

0
beispiele/5/04-function-exitcode.sh Normal file → Executable file
View File

0
beispiele/5/07-select-menu.sh Normal file → Executable file
View File

0
beispiele/5/09-backup.sh Normal file → Executable file
View File

16
beispiele/5/aufgabe2.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
function file_backup {
echo 'Backup --- building tar File...'
tar -czf $2 $1 || fail "Fehler beim Archiv erstellen"
echo '+DONE'
exit 0
}
fail () {
echo "Fehler! + $1"
exit 1
}
#function call
file_backup $1 $2