File tree 4 files changed +31
-1
lines changed
addon-metadata/pimp-my-shell
4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : pimp-my-shell
2
2
repository : .
3
3
version : " "
4
- install_date : " 2024-03-28T11:06:50 -03:00"
4
+ install_date : " 2024-03-28T11:32:16 -03:00"
5
5
project_files :
6
6
- web-build/Dockerfile.pimp-my-shell
7
7
- homeadditions/.bashrc.d/pimp-my-shell.sh
@@ -13,5 +13,6 @@ project_files:
13
13
- pimp-my-shell/hooks/README.md
14
14
- pimp-my-shell/hooks/post-import-db.sh
15
15
- pimp-my-shell/hooks/post-import-db.d
16
+ - pimp-my-shell/scripts/drush-uli.sh
16
17
global_files : []
17
18
removal_actions : []
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # ddev-generated
3
+ set -e -o pipefail
4
+
5
+ boxes_args=${DDEV_PIMP_MY_SHELL_DRUSH_ULI_BOXES_FORMAT-" -d peek -p h3v1" }
6
+ if [[ " $DDEV_PROJECT_TYPE " == * " drupal" * ]] || [[ " $DDEV_PIMP_MY_SHELL_PROJECT_TYPE " == * " drupal" * ]]; then
7
+ uli=$( drush uli " $@ " )
8
+ echo -e " \033[1;32m"
9
+ echo $uli | boxes $boxes_args
10
+ echo -en " \033[0m"
11
+ else
12
+ gum log --level debug " Not drupal"
13
+ exit 1
14
+ fi
Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ project_files:
10
10
- pimp-my-shell/hooks/README.md
11
11
- pimp-my-shell/hooks/post-import-db.sh
12
12
- pimp-my-shell/hooks/post-import-db.d
13
+ - pimp-my-shell/scripts/drush-uli.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # ddev-generated
3
+ set -e -o pipefail
4
+
5
+ boxes_args=${DDEV_PIMP_MY_SHELL_DRUSH_ULI_BOXES_FORMAT-" -d peek -p h3v1" }
6
+ if [[ " $DDEV_PROJECT_TYPE " == * " drupal" * ]] || [[ " $DDEV_PIMP_MY_SHELL_PROJECT_TYPE " == * " drupal" * ]]; then
7
+ uli=$( drush uli " $@ " )
8
+ echo -e " \033[1;32m"
9
+ echo $uli | boxes $boxes_args
10
+ echo -en " \033[0m"
11
+ else
12
+ gum log --level debug " Not drupal"
13
+ exit 1
14
+ fi
You can’t perform that action at this time.
0 commit comments