aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-update
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-update')
-rwxr-xr-xsrc/cpt-update8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/cpt-update b/src/cpt-update
index b3884e3..a8f9616 100755
--- a/src/cpt-update
+++ b/src/cpt-update
@@ -1,8 +1,6 @@
#!/bin/sh -ef
# Check for updates
-if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi
-
parser_definition() {
setup REST help:usage -- "usage: ${0##*/} [options]"
msg -- '' 'Options:'
@@ -12,11 +10,7 @@ parser_definition() {
global_options
}
-eval "$(getoptions parser_definition parse "$0")"
-
-parse "$@"
-eval set -- "$REST"
+if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi
create_cache
-
pkg_updates