aboutsummaryrefslogtreecommitdiff
path: root/alt/cpt-getchoice
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-07-25 11:25:36 +0300
committerCem Keylan <cem@ckyln.com>2020-07-25 11:25:36 +0300
commit38e3bef4a6acd767f5664c773911f8a97fb3ca09 (patch)
treee23dc117c86e4a3a00cd3e28b538a79f0f6e69b5 /alt/cpt-getchoice
parent47a3723632b82a0d3caf79dbe8ada1eae60dd976 (diff)
downloadcpt-extra-master.tar.gz
cpt-extra: change kiss commands to cpt commandsHEAD20200725master
Diffstat (limited to 'alt/cpt-getchoice')
-rwxr-xr-xalt/cpt-getchoice4
1 files changed, 2 insertions, 2 deletions
diff --git a/alt/cpt-getchoice b/alt/cpt-getchoice
index 75521b4..3b53c4b 100755
--- a/alt/cpt-getchoice
+++ b/alt/cpt-getchoice
@@ -5,10 +5,10 @@ case "$1" in ''|--help|-h)
printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg] [command]"
exit 0; esac
-~/proj/carbslinux/kiss/kiss l "$1" >/dev/null
+cpt-list "$1" >/dev/null
[ "$2" ]
-file="/var/db/kiss/choices/$1$(printf '%s' "$2" | sed 's#/#>#g')"
+file="/var/db/cpt/choices/$1$(printf '%s' "$2" | sed 's#/#>#g')"
[ -f "$file" ] || {
printf '\033[1;33m!> \033[1;36m%s \033[m%s\n' "$1" "choice '$2' not found" >&2
exit 1