Skip to content

Commit 2a5b8bb

Browse files
A Dynamic Collection of Shell Scripts with Educational Purpose
1 parent 2554c8c commit 2a5b8bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/tar-it

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DOCUMENTATION
88

99
file="$1"
1010

11-
if [[ -z "$1" ]]; then
11+
if [[ ! -d "$1" ]]; then
1212
echo "${0##*/} file or directory"
1313
echo "Or"
1414
echo 'tar -cf file_name.tar file_or_dir'

0 commit comments

Comments
 (0)