summaryrefslogtreecommitdiff
path: root/contrib/rpws
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/rpws')
-rwxr-xr-xcontrib/rpws4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/rpws b/contrib/rpws
index 4408734..899166e 100755
--- a/contrib/rpws
+++ b/contrib/rpws
@@ -59,6 +59,8 @@ sub ws_init
{
my $num = shift;
+ $num >= 2 || die "You must create at least 2 workspaces.";
+
# Backup the frames
my $fd = fdump();
@@ -66,7 +68,7 @@ sub ws_init
rp_call( "only" );
my $i;
- for my $i (1..$num)
+ for my $i (2..$num)
{
ws_init_ws( $i );
}