aboutsummaryrefslogtreecommitdiff
path: root/stowpkg
diff options
context:
space:
mode:
Diffstat (limited to 'stowpkg')
-rwxr-xr-xstowpkg8
1 files changed, 5 insertions, 3 deletions
diff --git a/stowpkg b/stowpkg
index 3327245..5455476 100755
--- a/stowpkg
+++ b/stowpkg
@@ -175,9 +175,11 @@ stowpkg_build () {
local package="$1"
local version="$2"
- # TODO
- # Check for package and version
- # Otherwise try to guess it
+ # Check
+ if [ -z "$version" ]; then
+ echo "$BASENAME: please specify package name and version"
+ exit 1
+ fi
# Set PREFIX
if [ -z "$PREFIX" ]; then