aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-07-17 17:48:44 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-09-28 07:53:07 +0200
commit2aa8535303de0f2e6fb284120588a7ede39dbf7c (patch)
tree02ab4184f9473e33137a7817522d2bf9edae73d5
parentc36501b531fc77916482de3efb1aa5e4fecaa58a (diff)
downloadnx-libs-2aa8535303de0f2e6fb284120588a7ede39dbf7c.tar.gz
nx-libs-2aa8535303de0f2e6fb284120588a7ede39dbf7c.tar.bz2
nx-libs-2aa8535303de0f2e6fb284120588a7ede39dbf7c.zip
debian/roll-tarballs.sh: more quotes, more curly braces, replace cd with pushd and pop.
-rwxr-xr-xdebian/roll-tarballs.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/debian/roll-tarballs.sh b/debian/roll-tarballs.sh
index 0f9568aad..52c2090f0 100755
--- a/debian/roll-tarballs.sh
+++ b/debian/roll-tarballs.sh
@@ -52,7 +52,7 @@ else
fi
if [ x"$RELEASE" == "xHEAD" ]; then
- CHECKOUT=refs/heads/$(git rev-parse --abbrev-ref HEAD)
+ CHECKOUT="refs/heads/$(git rev-parse --abbrev-ref HEAD)"
fi
if ! git rev-parse --verify -q "$CHECKOUT" >/dev/null; then
@@ -80,14 +80,14 @@ cd "${TEMP_DIR}/${PROJECT}-${RELEASE}/"
# Replace symlinks by copies of the linked target files
# Note: We don't have symlinked directories!!!
-find . -type l | while read link; do
- TARGET=$(readlink "$link")
- cd $(dirname "$link")
- if [ -f "$TARGET" ]; then
- rm -f $(basename "$link")
- cp "${TARGET}" $(basename "$link")
+find . -type "l" | while read link; do
+ TARGET="$(readlink "${link}")"
+ pushd "$(dirname "${link}")" >/dev/null
+ if [ -f "${TARGET}" ]; then
+ rm -f "$(basename "${link}")"
+ cp "${TARGET}" "$(basename "${link}")"
fi
- cd - 1>/dev/null
+ popd >/dev/null
done
mkdir -p "doc/applied-patches"