Skip to content

Commit 077e42e

Browse files
digger-yuloadamstjruwase
authored
Update install.sh (deepspeedai#3270)
Optimization Code 1. Use #!/usr/bin/env bash instead of #!/bin/bash to make the script more portable. 2. Use rm -rf instead of rm -r to remove directories recursively. Co-authored-by: Logan Adams <[email protected]> Co-authored-by: Olatunji Ruwase <[email protected]>
1 parent 48297c4 commit 077e42e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44
err_report() {
@@ -121,7 +121,7 @@ rm_if_exist() {
121121
if [ -f $1 ]; then
122122
rm $VERBOSE $1
123123
elif [ -d $1 ]; then
124-
rm -r $VERBOSE $1
124+
rm -rf $VERBOSE $1
125125
fi
126126
}
127127

0 commit comments

Comments
 (0)