Docker run printing wrong answer

33 Views Asked by At
FROM ubuntu
RUN apt-get update && apt-get install -y figlet
WORKDIR /app
COPY scriptas.sh /app/scriptas.sh
CMD figlet "NEDAS KAIRYS MKDF-23/1"&& chmod +x /app/scriptas.sh && ./scriptas.sh && ls darbas


this is script.sh

#!/bin/bash
rm - fr darbas
mkdir darbas
for i in $(find /etc -name '*.conf')
do
dydis=$(du -b "$i" | cut -f1)
vardas=$(basename "$i")
cp -r "$i" "darbas/${dydis)_${vardas}"
done

when i run this script using docker run i get diffrent answers compared to when i run it only using script. Hope you understand what i mean since i dont know the exact terminology

it supposed to print around couple hundred files but it only prints around 30

0

There are 0 best solutions below