summaryrefslogtreecommitdiff
path: root/control.sh
diff options
context:
space:
mode:
Diffstat (limited to 'control.sh')
-rwxr-xr-xcontrol.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/control.sh b/control.sh
index 537cb66..3d808bf 100755
--- a/control.sh
+++ b/control.sh
@@ -1,5 +1,6 @@
#!/bin/bash
-dir=$1
+src=$1
+dir=$2
dir=${dir:=_}
-sed -e "s@^\(Version:\).*@\1 $(./version.sh)@" control
+sed -e "s@^\(Version:\).*@\1 $(./version.sh)@" "${src}"
echo "Installed-Size: $(du -s "${dir}" | cut -f 1)"