Skip to content

Commit cb927ae

Browse files
authored
Change rm command to use -f option
Avoid rm: cannot remove '/home/ncadmin/.profile': No such file or directory Signed-off-by: enoch85 <[email protected]>
1 parent 5a3b6fa commit cb927ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/change-ncadmin-profile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ source /var/scripts/fetch_lib.sh
1313
DEBUG=0
1414
debug_mode
1515

16-
rm "/home/$UNIXUSER/.profile"
16+
rm -f "/home/$UNIXUSER/.profile"
1717

1818
cat <<-UNIXUSER-PROFILE > "$UNIXUSER_PROFILE"
1919
# ~/.profile: executed by the command interpreter for login shells.

0 commit comments

Comments
 (0)