equal
deleted
inserted
replaced
1 #!/bin/bash |
1 #!/bin/bash |
2 |
2 |
3 THIS="$(cd "$(dirname "$0")"; echo "$PWD")" |
3 THIS="$(cd "$(dirname "$0")"; echo "$PWD")" |
4 SUPER="$(cd "$THIS"; cd ..; echo "$PWD")" |
4 SUPER="$(cd "$THIS"; cd ..; echo "$PWD")" |
5 NAME="$(basename "$THIS")" |
5 NAME="$(basename "$THIS")" |
|
6 |
|
7 [ -h "$NAME" ] && { echo "$NAME is a symlink!"; exit 2; } |
6 |
8 |
7 TAR=tar |
9 TAR=tar |
8 type -path gtar >/dev/null && TAR=gtar |
10 type -path gtar >/dev/null && TAR=gtar |
9 |
11 |
10 cd "$SUPER" |
12 cd "$SUPER" |