-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprimero.sh
More file actions
23 lines (18 loc) · 800 Bytes
/
Copy pathprimero.sh
File metadata and controls
23 lines (18 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Ruta del directorio .devcontainer
DEV_CONTAINER_DIR=".devcontainer"
# Verificar si el directorio .devcontainer existe
if [ -d "$DEV_CONTAINER_DIR" ]; then
echo "El directorio $DEV_CONTAINER_DIR ya existe. No se realizarán acciones."
exit 0
else
echo "El directorio $DEV_CONTAINER_DIR no existe. Creándolo y moviendo archivos..."
# Crear el directorio .devcontainer
mkdir -p "$DEV_CONTAINER_DIR"
# Mover los archivos al directorio .devcontainer (asumiendo que están en el mismo directorio que el script)
mv chmod.sh "$DEV_CONTAINER_DIR/"
mv devcontainer.json "$DEV_CONTAINER_DIR/"
mv automatizador_permisos.json "$DEV_CONTAINER_DIR/"
mv post_create.sh "$DEV_CONTAINER_DIR/"
echo "Archivos movidos exitosamente a $DEV_CONTAINER_DIR."
fi