Fix quotes for variable syntax

This commit is contained in:
Blade of Darkness 2020-12-07 21:08:33 +01:00
parent 3f68c82de8
commit 4acb88e843
1 changed files with 1 additions and 1 deletions

2
rmuser
View File

@ -24,7 +24,7 @@ remove_user()
echo "$1 user account is unenforced in ansible..."
currdir=`pwd`
cd $REPO_LOCATION; git pull
sed -i '/$1/d' $REPO_LOCATION/roles/shell/tasks/users.yml
sed -i "/$1/d" $REPO_LOCATION/roles/shell/tasks/users.yml
rm $REPO_LOCATION/roles/shell/tasks/users/$YAML_FILE
git commit -am "$1 account unenforced in ansible"
git push