if [ "$var" != "" ] ; then
if [ "${var%${var#?}}" = "/" ] ; then
if [ ! -x $var ] ; then
return 1 fi
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Can someone explain me this code
|
5 | 563 | January 8, 2024 | |
Learn Bash Scripting by Building Five Programs - Build Five Programs | 2 | 208 | January 7, 2025 | |
Learn Bash and SQL by Building a Bike Rental Shop — syntax error for 'fi' | 4 | 394 | January 7, 2025 | |
Stuck at Learn Bash and SQL by Building a Bike Rental Shop | 1 | 15 | January 8, 2025 | |
Learn Bash and SQL by Building a Bike Rental Shop - Build a Bike Rental Shop | 8 | 32 | February 4, 2025 |