fix blueprint.sh: bash autocompletion not working correctly on -remove

This commit is contained in:
prplwtf 2024-10-10 23:24:01 +02:00
parent dc6c07df9d
commit 451fe4bf03

View file

@ -38,7 +38,7 @@ if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
case "${cmd}" in case "${cmd}" in
-install|-add|-i) opts="$(find "$BLUEPRINT__SOURCEFOLDER"/*.blueprint | sed -e "s|^$BLUEPRINT__SOURCEFOLDER/||g" -e "s|.blueprint$||g")" ;; -install|-add|-i) opts="$(find "$BLUEPRINT__SOURCEFOLDER"/*.blueprint | sed -e "s|^$BLUEPRINT__SOURCEFOLDER/||g" -e "s|.blueprint$||g")" ;;
-remove|-r) opts="$(sed "s|,||g" "$BLUEPRINT__SOURCEFOLDER/.blueprint/extensions/blueprint/private/db/installed_extensions")" ;; -remove|-r) opts="$(sed "s|,| |g" "$BLUEPRINT__SOURCEFOLDER/.blueprint/extensions/blueprint/private/db/installed_extensions")" ;;
-export) opts="expose" ;; -export) opts="expose" ;;
-upgrade) opts="remote" ;; -upgrade) opts="remote" ;;