0

This is my demo.sh file

#!/bin/bash
if [[ $(ls -A) ]]; then
echo "there are files"
else
echo "no files found"
fi

but when i run this i get output as

    demo.sh: 3: demo.sh: [[: not found
    no files found

but there is some file on this directory

0 Answers0