Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
blackboard-extractor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
blackboard-extractor
Commits
70d19c7c
Commit
70d19c7c
authored
Sep 12, 2015
by
Richard Torenvliet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the prefix of tar to determine the extraction method
parent
ddfcdc0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
bb_extract
bb_extract
+8
-9
No files found.
bb_extract
View file @
70d19c7c
...
@@ -40,15 +40,14 @@ function extract() {
...
@@ -40,15 +40,14 @@ function extract() {
if [ -f $ARCHIVE ] ; then
if [ -f $ARCHIVE ] ; then
case $ARCHIVE in
case $ARCHIVE in
*.tar.bz2) tar xvjf $ARCHIVE -C $OUTPUT;;
*.bz2) tar xvjf $ARCHIVE -C $OUTPUT;;
*.tar.gz) tar xvzf $ARCHIVE -C $OUTPUT;;
*.gz) tar xvzf $ARCHIVE -C $OUTPUT;;
*.gz) tar xvzf $ARCHIVE -C $OUTPUT;;
*.tgz) tar xvzf $ARCHIVE -C $OUTPUT;;
*.rar) unrar x $ARCHIVE $OUTPUT ;;
*.tbz2) tar xvjf $ARCHIVE -C $OUTPUT;;
*.tar) tar xvf $ARCHIVE -C $OUTPUT;;
*.rar) unrar x $ARCHIVE $OUTPUT;;
*.tbz2) tar xvjf $ARCHIVE -C $OUTPUT;;
*.tar) tar xvf $ARCHIVE -C $OUTPUT;;
*.tgz) tar xvzf $ARCHIVE -C $OUTPUT;;
*.zip) unzip $ARCHIVE -d $OUTPUT;;
*.zip) unzip $ARCHIVE -d $OUTPUT;;
*) echo "'$ARCHIVE' cannot be extracted via >extract<"
*) echo "'$ARCHIVE' cannot be extracted via >extract<" && exit 1;;
esac
esac
else
else
echo "'$ARCHIVE' is not a valid file $OUTPUT, continueing"
echo "'$ARCHIVE' is not a valid file $OUTPUT, continueing"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment