diff options
author | Christian Hesse <mail@eworm.de> | 2019-02-21 00:03:57 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-02-21 00:03:57 +0100 |
commit | 04025da9b82260544c60019394fb88428fb215ce (patch) | |
tree | e9bfca106120d186e79db8281c7250baa3436056 | |
parent | 5f7c7274573ae290205aa984e8029c586db0e16e (diff) |
global-functions: drop $Read, use :return directly
-rw-r--r-- | accesslist-duplicates.capsman | 4 | ||||
-rw-r--r-- | accesslist-duplicates.local | 4 | ||||
-rw-r--r-- | accesslist-duplicates.template | 4 | ||||
-rw-r--r-- | global-functions | 5 |
4 files changed, 3 insertions, 14 deletions
diff --git a/accesslist-duplicates.capsman b/accesslist-duplicates.capsman index b0df339..633c771 100644 --- a/accesslist-duplicates.capsman +++ b/accesslist-duplicates.capsman @@ -6,8 +6,6 @@ # # !! Do not edit this file, it is generated from template! -:global Read; - :local Seen [ :toarray "" ]; :local Shown [ :toarray "" ]; @@ -24,7 +22,7 @@ :set Shown ($Shown, $Mac); :put "\nEnter to skip, numeric id to remove!"; - :local Remove [ $Read ]; + :local Remove [ :return ]; :if ($Remove != "") do={ :put ("Removing numeric id " . $Remove . "...\n"); / caps-man access-list remove $Remove; diff --git a/accesslist-duplicates.local b/accesslist-duplicates.local index 552a04a..cf14c3d 100644 --- a/accesslist-duplicates.local +++ b/accesslist-duplicates.local @@ -6,8 +6,6 @@ # # !! Do not edit this file, it is generated from template! -:global Read; - :local Seen [ :toarray "" ]; :local Shown [ :toarray "" ]; @@ -24,7 +22,7 @@ :set Shown ($Shown, $Mac); :put "\nEnter to skip, numeric id to remove!"; - :local Remove [ $Read ]; + :local Remove [ :return ]; :if ($Remove != "") do={ :put ("Removing numeric id " . $Remove . "...\n"); / interface wireless access-list remove $Remove; diff --git a/accesslist-duplicates.template b/accesslist-duplicates.template index 18225a6..9bb3ce1 100644 --- a/accesslist-duplicates.template +++ b/accesslist-duplicates.template @@ -7,8 +7,6 @@ # !! This is just a template! Replace '%PATH%' with 'caps-man' # !! or 'interface wireless'! -:global Read; - :local Seen [ :toarray "" ]; :local Shown [ :toarray "" ]; @@ -25,7 +23,7 @@ :set Shown ($Shown, $Mac); :put "\nEnter to skip, numeric id to remove!"; - :local Remove [ $Read ]; + :local Remove [ :return ]; :if ($Remove != "") do={ :put ("Removing numeric id " . $Remove . "...\n"); / %PATH% access-list remove $Remove; diff --git a/global-functions b/global-functions index 8c4d41d..b22a295 100644 --- a/global-functions +++ b/global-functions @@ -12,11 +12,6 @@ :global SentLteFirmwareUpgradeNotification "-"; :global Identity [ / system identity get name ]; -# read input from user -:global Read do={ - :return; -} - # url encoding :global UrlEncode do={ :local Input [ :tostr $1 ]; |