aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Boniface <joshua@boniface.me>2018-12-14 13:47:04 -0500
committerJoshua Boniface <joshua@boniface.me>2018-12-14 13:47:04 -0500
commit26e44854f6914474153dfb3e1f43cec4e06195c3 (patch)
tree738119b27d1ce8f86c7297df2674c3fc93e73838
parentf3ba806e4a391036bb8e321ba859b573afb6d3e1 (diff)
Add quoting and consistent variable calls
-rwxr-xr-xbuild-deb.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/build-deb.sh b/build-deb.sh
index a85725708..ec7c7d128 100755
--- a/build-deb.sh
+++ b/build-deb.sh
@@ -13,11 +13,11 @@ image_name="jellyfin-debuild"
cleanup() {
docker image rm $image_name --force
- test -d ${package_temporary_dir} && rm -r ${package_temporary_dir}
+ test -d "$package_temporary_dir" && rm -r "$package_temporary_dir"
}
trap cleanup EXIT
-docker build . -t $image_name -f ./Dockerfile.debian_package
-docker run --rm -v $package_temporary_dir:/temp $image_name cp -r /dist /temp/
-sudo chown -R $current_user $package_temporary_dir
-mv $package_temporary_dir/dist/*.deb ../
+docker build . -t "$image_name" -f ./Dockerfile.debian_package
+docker run --rm -v "$package_temporary_dir:/temp" "$image_name" cp -r /dist /temp/
+sudo chown -R "$current_user" "$package_temporary_dir"
+mv "$package_temporary_dir"/dist/*.deb ../